Shortest prime number program

Christoph Zwerschke cito at online.de
Sat Feb 11 11:45:03 EST 2006


dickinsm at gmail.com schrieb:
> How about:
> 
> [2]+[x for x in range(1,99) if 2**x%x==2]

If the range goes beyond 340, it also gives non-primes...

-- Christoph



More information about the Python-list mailing list