Maybe it is a stupid question, but i was wondering if you could provide the shortest source to find prime numbers with Python. I was also wondering how to find prime numbers
Since one can just cut and paste the first million primes from the net:
map(int,open('primes.txt'))
This is a somewhat similar to the question I asked yesterday where wim provided a fairly short answer:
is this primes generator pythonic