Skip to content

Euclid's Proof

Euclid's proof of the infinitude of primes is one of the earliest examples of a general argument in number theory. It does not depend on computation, experimentation, or...

The Classical Argument

Euclid’s proof of the infinitude of primes is one of the earliest examples of a general argument in number theory. It does not depend on computation, experimentation, or knowledge of large primes. It proves that no finite list of primes can ever be complete.

Suppose we are given finitely many primes:

p1,p2,,pk. p_1,p_2,\ldots,p_k.

We do not yet assume that these are all primes. We merely ask whether this list could contain every prime.

Form the integer

N=p1p2pk+1. N=p_1p_2\cdots p_k+1.

This number is constructed to have a special property: when divided by any prime pip_i in the list, it leaves remainder 11.

Indeed,

N=p1p2pk+1 N=p_1p_2\cdots p_k+1

and each pip_i divides the product

p1p2pk. p_1p_2\cdots p_k.

Therefore

N1(modpi). N\equiv1\pmod{p_i}.

Hence no prime in the list divides NN.

The Need for a Prime Divisor

Since

N>1, N>1,

the integer NN has at least one prime divisor. This follows from the existence part of prime factorization.

Let qq be a prime such that

qN. q\mid N.

If the original list contained every prime, then qq would have to equal one of the listed primes. So

q=pi q=p_i

for some ii.

But no pip_i divides NN, because NN leaves remainder 11 modulo pip_i. This is impossible.

Therefore the original list cannot contain all primes.

Since every finite list of primes is incomplete, there must be infinitely many primes.

The Core Contradiction

The contradiction can be written compactly.

Assume

p1,p2,,pk p_1,p_2,\ldots,p_k

are all the primes. Set

N=p1p2pk+1. N=p_1p_2\cdots p_k+1.

Let qNq\mid N be prime. Since qq appears in the list, q=piq=p_i for some ii. Then

qp1p2pk q\mid p_1p_2\cdots p_k

and

qN. q\mid N.

So qq divides their difference:

Np1p2pk=1. N-p_1p_2\cdots p_k=1.

Thus

q1. q\mid1.

But no prime divides 11. Contradiction.

Why NN Need Not Be Prime

A common misunderstanding is to think that Euclid’s proof constructs a new prime by making

N=p1p2pk+1 N=p_1p_2\cdots p_k+1

prime. This is false.

The number NN may be composite.

For example,

23571113+1=30031, 2\cdot3\cdot5\cdot7\cdot11\cdot13+1=30031,

and

30031=59509. 30031=59\cdot509.

The proof only requires that NN have some prime divisor. Since none of the listed primes divides NN, any prime divisor of NN must be new.

The construction therefore produces a new prime indirectly, not necessarily as NN itself.

A Finite List Is Always Incomplete

Euclid’s proof works for any finite list of primes, even if the list is not ordered and even if it misses many small primes.

Given any finite list

p1,,pk, p_1,\ldots,p_k,

the number

p1pk+1 p_1\cdots p_k+1

has a prime divisor outside the list.

Thus the theorem is stronger than the statement that primes do not stop at some largest prime. It says that no finite collection captures the entire set of primes.

This is a structural result about arithmetic, not merely a statement about large numbers.

The Role of Divisibility

The proof uses two elementary facts about divisibility.

First, if a prime pip_i divides the product

p1p2pk, p_1p_2\cdots p_k,

then adding 11 produces a number not divisible by pip_i.

Second, every integer greater than 11 has a prime divisor.

The first fact constructs avoidance. The second fact forces the presence of a prime. Together they show that the new integer must point to a prime outside the original list.

This interaction between avoidance and existence appears often in number theory.

Consequences

Euclid’s theorem implies that primes are unbounded. For every integer MM, there exists a prime pp such that

p>M. p>M.

If not, then all primes would lie among the finitely many integers

2,3,,M. 2,3,\ldots,M.

That would give only finitely many primes, contradicting Euclid’s theorem.

Thus primes continue indefinitely.

Historical Importance

Euclid’s proof appears in the Elements, Book IX, Proposition 20. Its survival and influence come from its clarity. It begins with an arbitrary finite list, constructs a new number, and uses divisibility to force a contradiction.

Many later proofs in number theory follow a similar pattern: assume a finite obstruction, build an integer with carefully chosen congruence properties, and extract a prime divisor with unexpected behavior.

The proof is elementary, but its method is deep. It shows that the multiplicative structure of the integers cannot be generated by finitely many primes.