Prime numbers
Prime numbers are the numbers that cannot be split into smaller whole numbers. Open the five drawers of this cabinet to strike them out, build them from dots, see why there is no last one, and why they protect secrets.
Key takeaways
- A prime is a whole number above 1 that only divides by 1 and itself. 1 is not prime.
- Every whole number above 1 splits into primes in exactly one way, apart from the order.
- There is no last prime. Euclid’s trick builds a new one from any list.
- Primes thin out as numbers grow: near n, about 1 number in ln(n) is prime. This is an average, not a timetable.
- Multiplying primes is easy and splitting the product is hard. Codes that protect data online lean on that gap.
Sources
Most of these sites could not be opened while this page was written, so the facts were checked through search results that quote them. The counts of primes (25, 168, 1,229, 9,592, 78,498), the 30,031 example, the 41,024,320 digit prime and the 617 digits of RSA-2048 each appeared in at least two places. The tools are toys made for this page, and nothing on it is security advice.
- The Prime Pages: how many primes are there?The number of primes below 100, 1,000 and up to a million, and how they thin out.
- The Prime Pages: sieve of EratosthenesStrike out the multiples of primes up to the square root.
- The Prime Pages: prime number theoremAbout 1 number in ln(n) is prime near n.
- University of York: Euclid’s proofThe proof, and the 30,031 = 59 × 509 example.
- Encyclopedia.com: sieve of EratosthenesThe history of the sieve and the square root rule.
- GIMPS: M136279841The largest known prime, found in October 2024.
- Smithsonian Magazine: the new largest primeIts 41 million digits and who found it.
- Wikipedia: RSA numbersRSA-2048 has 617 digits and has not been factored.
- Wikipedia: prime number theoremThe prime number theorem and the 1 in ln(n) rule.
- arXiv: are there infinitely many primes?Different proofs that the primes never end.