photo sharing and upload picture albums photo forums search pictures popular photos photography help login
Type your message and click Add Comment
It is best to login or register first but you may post as a guest.
Enter an optional name and contact email address. Name
Name Email
help private comment
Peter Hollinger | all galleries >> Galleries >> PaD > Prime Spiral
previous | next
07-APR-2013 Peter Hollinger

Prime Spiral

def IsPrime(n):
return not [i for i in range(2, n) if not n%i]

def tdemo_prime_spiral():
for n in range(9999):
if IsPrime(n):
forward(n)
left(90)


other sizes: small medium large original auto
comment | share
Peter Hollinger09-Apr-2013 00:16
Thanks, godro.
Donna: Something like 'color((0,0,0), (240,10,180))', but I actually colored it in photoshop.
godro08-Apr-2013 20:19
I like it!
Donna Hollinger08-Apr-2013 18:46
What code makes that kind of purple??