Shortest prime number program

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Sat Feb 11 11:59:53 EST 2006


This is a little shorter :-)

[2]+[x for x in range(2,99)if 2**x%x==2] 

Bye,
bearophile




More information about the Python-list mailing list