Listing Primes
This script does naive primality testing to hunt for primes in the range you specify:
Please enter two numbers less than 2,147,483,648 (do not use commas):
From
to
This can be used to contemplate the general distribution of primes: the
density
of primes near
x
is approximately
x/log x
. (The error in this approximation is contingent upon the Riemann Hypothesis, etc.).
At the bottom the number of primes is also indicated, and elapsed time in milliseconds.