Prime Number Generator

List every prime number up to a limit.

25primes found
2357111317192329313741434753596167717379838997

Free online prime number generator. Enter a limit to list every prime number up to it using the Sieve of Eratosthenes, with a total count. Fast and runs in your browser.

How to use the Prime Number Generator

  1. 01Enter the upper limit.
  2. 02Every prime up to that number is generated instantly.
  3. 03Copy the full list with one click.

Frequently asked questions

How does the generator work?

It uses the Sieve of Eratosthenes, a classic algorithm that efficiently marks off multiples to leave only the prime numbers.

Is there a maximum limit?

To keep it fast and responsive in the browser, the limit is capped at one million. Larger sets are offered as copyable text rather than tiles.