Shortest prime number program
swisscheese
jimlewis at miclog.com
Sat Feb 11 07:22:46 EST 2006
At 58, very nice :-) Building on yours we get 57:
r=range(2,99)
[x for x in r if sum([x%d==0 for d in r])<2]
More information about the Python-list
mailing list