Introduction
Prime numbers do not run out. Euclid showed why with a short argument that turns the idea of a complete list of primes against itself. Multiply every prime on that supposed list, then add one: the resulting number cannot be divided evenly by any prime on the list. That leaves a contradiction, proving that no finite list can contain them all.
What Counts as a Prime Number?
A prime number is a whole number greater than 1 whose only positive whole-number divisors are 1 and itself. For example, 2, 3, 5, and 7 are prime. The number 6 is not: it can be divided evenly by 2 and by 3, so it is called composite.
The number 1 is not prime. This convention matters because prime numbers serve as the basic building blocks of whole numbers: every whole number greater than 1 is either prime or can be expressed as a product of primes. For instance, 12 is 2 × 2 × 3.
The question Euclid addressed was not how to find the next prime after a particular number. It was more fundamental: could there be only a limited number of primes altogether? His proof shows that the answer is no.
Euclid’s Argument: Assume the List Is Complete
Euclid’s proof, presented in Elements, begins by considering the opposite of what it aims to establish. Suppose that there are only finitely many prime numbers. If that were true, it would be possible to write down every one of them in a complete list.
To make the reasoning concrete, imagine that the complete list were 2, 3, and 5. This is not actually a complete list, but it provides a small example for following the calculation. Euclid’s argument works in the same way for any proposed complete list, however long it may be.
The next step is to multiply together all the primes on the supposed list. For the example, that gives 2 × 3 × 5 = 30. In general, call the product of all the listed primes N.
Now add 1 to that product. In the example, the new number is 30 + 1 = 31. In general, the number is N + 1.
Why Adding One Creates a Problem
Every prime on the assumed list divides N, because N was made by multiplying all those primes together. In the example, 2, 3, and 5 each divide 30 exactly.
But none of those listed primes divides N + 1 exactly. If a listed prime divided both N and N + 1, it would also divide their difference: (N + 1) − N = 1. No prime divides 1, so that cannot happen. Equivalently, dividing N + 1 by any prime factor of N always leaves a remainder of 1.
For the example, 31 leaves a remainder of 1 when divided by 2, by 3, and by 5. So it is not divisible by any prime in the supposed list.
This is the key move in Euclid’s proof. The number N + 1 is deliberately constructed so that every prime on the alleged complete list fails to divide it. Yet N + 1 is greater than 1, so it is either prime itself or has at least one prime divisor.
How the Contradiction Proves There Are More Primes
If N + 1 is prime, then it is a prime number missing from the supposed complete list. In the small example, 31 is prime, so it immediately supplies a prime not listed among 2, 3, and 5.
If N + 1 is composite, it can be divided into smaller factors, and those factors ultimately include at least one prime. This follows from the fact that every whole number greater than 1 is prime or can be broken down into prime factors. None of the prime factors of N + 1 can be on the assumed list, because every listed prime leaves a remainder of 1 when dividing N + 1.
Either possibility leads to the same result: there is a prime not included in the list claimed to contain every prime. That contradicts the assumption that the list was complete. The assumption must therefore be false. There cannot be a finite, complete list of prime numbers.
This is a proof by contradiction. It starts by assuming that only finitely many primes exist, then shows that this assumption leads to an impossibility. Rejecting the assumption leaves the conclusion: infinitely many primes exist.
The New Number Does Not Have to Be Prime
A common misunderstanding is that Euclid’s construction always produces a new prime number directly. It does not. The number formed by multiplying the listed primes and adding 1 may be prime, but it may also be composite. The proof needs only one new prime divisor, not for N + 1 itself to be prime.
For example, take the primes 2, 3, 5, 7, 11, and 13. Their product is 30,030, so adding 1 gives 30,031. This number is composite: it equals 59 × 509. Neither 59 nor 509 appears in the original list, and either one is enough to show that the list was not complete.
The distinction is important. The construction does not promise a prime every time, nor does it give a simple formula for the next prime. It guarantees that any proposed finite list leaves out at least one prime divisor of the number built from that list.
What the Proof Does—and Does Not—Tell Us
Euclid’s argument establishes that the primes continue without end, but it does not identify all of them or tell us how far away the next unlisted prime will be. Given a particular list, the product-plus-one number may have prime factors that are much larger than the primes listed, but the proof supplies no general upper limit for how large those factors must be.
Nor does the argument show that every number of the form “the product of some primes plus 1” is prime. A number made that way may have several prime factors. The conclusion is narrower and more powerful: if the starting list contains every prime in a claimed finite collection, the construction forces a prime divisor outside that collection.
This is a general feature of the reasoning. Rather than searching one number at a time, the proof takes any proposed complete list and explains why that particular list cannot be complete. It applies regardless of how many primes the list contains.
Why Euclid’s Proof Is Still Taught
The proof is valued for its economy: a few basic facts about multiplication and divisibility lead to a conclusion about an infinite collection. Its central strategy is also useful beyond this specific question. To show that a proposed list is incomplete, construct an object that cannot be accounted for by anything already on the list.
In this case, multiplication makes a number divisible by every prime on the list. Adding 1 changes its relationship to each of those primes: they all leave a remainder of 1 instead of dividing it evenly. The construction therefore turns the list itself into the reason the list must be missing something.
Euclid’s result does not depend on modern techniques or on calculating very large primes. The argument needs only the elementary facts that a prime dividing a product-plus-one would also have to divide the difference, 1, and that every integer greater than 1 has a prime divisor. Those facts are enough to rule out a final prime.
Conclusion
Euclid proved that primes are infinite by supposing there were only finitely many, multiplying all the primes on that imagined list, and adding 1. No listed prime can divide the new number, yet it must be prime or have a prime divisor. That prime is missing from the list, contradicting the assumption. The number itself need not be prime; its unlisted prime divisor completes the argument.

