Shortest prime number program

"Martin v. Löwis" martin at v.loewis.de
Sat Feb 11 08:07:11 EST 2006


You can save two bytes with
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