View Single Post
Old Apr 13th, 2005, 9:52 PM   #6
SaturN
Programmer
 
Join Date: Apr 2005
Location: Uk
Posts: 68
Rep Power: 4 SaturN is on a distinguished road
The to the power of is straight forward i think
 for x in range(1,22)
       print x*x
But the primary numbers has got me, :p
I was thinking of checking to see if a base number was equal to the number given, if not add another number and check again, but it seems sloppy..

Last edited by SaturN; Apr 13th, 2005 at 9:54 PM. Reason: code error
SaturN is offline   Reply With Quote