There are also good algorithms for deciding whether a number of a
particular form is prime. For example, there's a test for numbers of
the form 2**n + 1.
And don't forget the Miller-Rabin test.
DaveA
Do they have to go from low to high? :( )
1) google list of prime numbers
2) see "Prime numbers list" in the results (number 3 in the results)
3) click link that leads to www.prime-numbers.org
I found 455042511 prime numbers in approx 15 seconds.
Is that what you wanted?
--
Nigel Rowe
A pox upon the spammers that make me write my address like..
rho (snail) fisheggs (stop) name
Not bad at all. How about using http://www.sagemath.org/ (written in
Python).
sage: time primes_first_n(10^7);
CPU times: user 4.36 s, sys: 2.43 s, total: 6.79 s
Wall time: 6.88 s
That used 3G of RAM, you could certainly go higher if you have more
memory.
----aht