Maths - Prime Number List Generator

Show/Hide: Definitions Formulae Instructions

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 run. 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

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.
Settings
or or

Results:


© Copyright Mike Brockington 2004 - 2025   All Rights Reserved