Maths - Prime Number List Generator

Introduction:

This page allows you to generate a list of Prime Numbers, as a series, or one-by-one. You may choose between a numbered list, or an unformatted sequence of results. Both will have exactly the same entries. Please note that this task requires a lot of memory, to create large lists. The actual computation is carried out indirectly using a variation on an ancient Greek method known as "The Sieve of Eratosthenes": a list of non-prime numbers is produced by generating a set of multiplication tables from the known primes (there is no need to list multiples of the non-prime numbers) and then cross-checking each integer in sequence to see if it exists in the non-prime list.
Click on any of the links at the top of the page to reveal (or hide) more information about this calculator.
If you don't want to wait, you can download the first One-Hundred Thousand prime numbers as a text file, or the first 100k Primes as a CSV file that you can open in Excel, Numbers or any other spreadsheet program, such as Libre Office Calc. For even larger lists, there is now: the first 250 Thousand Primes as a CSV file, or: the first 250 Thousand Primes as a plain-text file, and the first 250 Thousand Primes as a JSON file All three are just under 2MB in size.

Settings
or or

Results:


Instructions

If you change the 'Number of Primes to generate' box, after a list has been generated, the original list will be expanded from where it previously finished.
If you have a very old computer, and choose to calculate a long list, the system may become temporarily unresponsive. If this proves problematic, choose a small number first, then increase gradually. Only new values will be created each time.