Euclid’s proof that the primes never run out
Over 2,300 years ago, Euclid showed in a few lines that there is no biggest prime number.
The story
Prime numbers, like 2, 3, 5, 7 and 11, can only be divided by 1 and themselves. As numbers get bigger, primes get rarer. So it is natural to wonder: do they eventually stop? Is there a largest prime?
Euclid answered in his book the Elements, around 300 BCE. Suppose someone hands you a list and claims it contains every prime. Multiply all of them together and add 1. Call the result N.
Divide N by any prime on the list and the remainder is 1, so none of them divides it. But every whole number bigger than 1 is made from primes. So N’s prime factors must be primes that are not on the list. The list was not complete after all. Whatever list you are given, there is always another prime: they go on for ever.
Play with it
How it works, step by step
- 1
Start with any finite list of primes, p₁, p₂, …, pₖ.
- 2
Make N = p₁ × p₂ × … × pₖ + 1.
- 3
Dividing N by any listed prime leaves remainder 1.
- 4
N has at least one prime factor, and it cannot be on the list.
- 5
So no finite list holds every prime: there are infinitely many.
Multiply the primes on any list and add 1: the result has a prime factor that is not on the list.
Try it yourself
1What is 2 × 3 × 5 + 1?
2When N = 2 × 3 × 5 × 7 + 1 is divided by 7, what is the remainder?
3Is N = (product of a list of primes) + 1 always prime?
Did you know?
- N itself is not always prime. 2 × 3 × 5 × 7 × 11 × 13 + 1 = 30,031 = 59 × 509. But its factors are always new primes.
- The largest known prime, found in 2024, has over 41 million digits.
- Proofs that work by showing a claim leads to nonsense are called proofs by contradiction.