Prime Number List

Inputs

Up to 10 trillion, one million numbers at a time.

Results

Primes in the range
—
Prime number {n}
—
First and last
—
Biggest gap
—
Twin prime pairs
—

The primes

A prime number has exactly two divisors: 1 and itself. 2, 3, 5, 7 and 11 are prime; 9 isn’t, because 3 × 3 = 9. This tool uses the sieve of Eratosthenes, which crosses out the multiples of each prime, to list every prime in a range in an instant. To check or factor a single number, use the prime factorization calculator.

How to use it

  1. Enter a range with from and to.
  2. Read how many primes it holds, the twin primes and the biggest gap, then copy the list if you need it.
  3. To find a specific prime by its position, enter n.

Examples: there are 25 primes between 1 and 100, 21 between 100 and 200, and 168 below 1,000. Between 1 and 100 there are 8 twin prime pairs, and the biggest gap is 8, between 89 and 97. The 100th prime is 541, the 10,000th is 104,729 and the 1,000,000th is 15,485,863.

Questions and answers

Is 1 a prime number?

No. A prime needs exactly two different divisors, and 1 has only one. Leaving 1 out also keeps every number’s prime factorization unique.

What are twin primes?

Two primes that differ by 2, like 11 and 13 or 41 and 43. Nobody has proven yet whether there are infinitely many.

How many primes are there?

Infinitely many, as Euclid proved over 2,000 years ago. They thin out slowly: about 1 in 7 numbers near 1,000 is prime, and about 1 in 28 near a trillion.

Link with pre-filled values

Add # and these parameters to the end of this page's address to open the tool with values already filled in.

ParameterWhat it sets
fromStart of the range.
toEnd of the range (at most one million numbers after from).
nthWhich prime to find (1–1,000,000).

Example: https://toolabelle.com/prime-numbers/#from=100&to=200&nth=10000

Related tools