RandomNr

Number Lists

Prime Number List Generator

List every prime number between two values, ready to copy or export as CSV.

Prime Number List Generator

2, 3, 5, 7, 11, ...

Primes 1 to 100

Range

Info

Lists every prime between the two values, tested by trial division.

Copy separator

How to use the prime number list

  1. Set the lowest and highest value. The list covers every prime between them.
  2. Press List prime numbers. Up to 5000 primes are shown.
  3. Copy the list or download it as a CSV, one prime per row.

How many primes there are, and how they thin out

Primes never stop, Euclid proved that over two thousand years ago, but they do get rarer as numbers grow. The prime counting function tracks exactly how many exist below each threshold.

BelowNumber of primesShare of all numbers
10440.0%
1002525.0%
1,00016816.8%
10,0001,22912.3%
100,0009,5929.6%

The thinning follows the prime number theorem: near a large number n, roughly one in every natural log of n numbers is prime. That is why this page finds 25 primes in the first hundred numbers but only 168 in the first thousand.

Landmarks on the prime list

A few facts anchor any list this page produces. Two is the only even prime, since every other even number divides by two. One is not prime by definition, so lists here always start at 2. Twin primes are pairs separated by two, such as 11 and 13, 17 and 19, and 29 and 31, and whether they go on forever is still an open question. At the far end of the scale, the largest known prime, found through the GIMPS project in October 2024, is 2 to the power 136,279,841 minus 1, a number with 41,024,320 digits.

How the list is computed

Each candidate is tested by trial division: check divisibility by 2 and 3, then by numbers of the form 6k plus or minus 1 up to the square root of the candidate. Passing that test proves primality outright, no probabilistic shortcut involved, which is why every number on the list is certain to be prime. For a single random prime rather than the full run, the random prime number generator draws from the same verified pool.

Popular generators

Frequently asked questions

What is a prime number

A prime is a whole number above 1 whose only divisors are 1 and itself, such as 2, 3, 5, 7 and 11. Every other whole number above 1 is composite.

How are the primes found

The tool tests each number in the range by trial division up to its square root, which is exact and fast for the ranges people use here.

What range can I use

Any range up to two million. Wider ranges are trimmed at the top, and up to 5000 primes are listed.

Is 1 a prime number

No. By definition 1 is not prime, so the list starts at 2 even if your lowest value is 1 or 0.

Is it free

Yes, free and with no sign up. Everything runs in your browser and nothing you enter leaves your device.

Related generators

For a single random prime rather than the full list, use the random prime number generator. For other sequences see the number list generator.