[GAP Forum] elementary help with loops

((1/f)) fadebox at gmail.com
Fri Jan 13 07:36:45 GMT 2012


Dear Forum,

I now know how to write a normal for loop to generate some kind of data,
such as:

*>for i in [1..30] do;*
*>Print(IsPrime(i*10+9), ":", i*10+9, "\n");*
*>od;*

But after running this I just want to play with minor variations on the
theme instead of
having to type out the whole command all over again. How can I do this?
I'm sure this is simple, but I'm new to this software. Kindly help.

regards,
- Rohit Gupta


More information about the Forum mailing list