Prime Number Generator
Generate every prime number in any range instantly. Just enter the start and end values to get the full list, the count, and the smallest and largest primes — useful for homework, coding exercises and number theory practice.
Enter values — the result will show here live.
How to use
- Enter the start and end values of the range.
- All primes will be listed in the result box below, separated by commas.
- Copy the comma-separated list for use in code, spreadsheets or notes.
Tips
- Narrow the range if the page feels slow — ranges are capped to keep the page fast.
- The largest and smallest primes are handy for picking sample data for code tests.
- Copy the comma-separated list straight into spreadsheets or code.
Note: Uses the Sieve of Eratosthenes method. End is capped at 1,000,000 and the range at 100,000 numbers so the page stays fast.