Prime numbers are the building blocks of the positive integers. Once unique prime factorization is known, a natural question arises: are there only finitely many primes, or do...
The Basic Question
Prime numbers are the building blocks of the positive integers. Once unique prime factorization is known, a natural question arises: are there only finitely many primes, or do primes continue forever?
The answer is that there are infinitely many primes.
This result is one of the oldest theorems in number theory. Its proof is short, but the idea is powerful: any finite list of primes can be used to construct an integer that forces the existence of another prime.
Euclid’s Theorem
There are infinitely many prime numbers.
Suppose, for contradiction, that there are only finitely many primes. List them as
Now form the integer
The integer is greater than , so by unique prime factorization it has at least one prime divisor. Let be a prime such that
Since is prime, it must be one of the primes in the list. Thus
for some .
But divides the product
It also divides . Therefore divides their difference:
Hence
which is impossible for a prime .
This contradiction shows that no finite list can contain all primes. Therefore there are infinitely many primes.
The Constructive Idea
The proof does not say that
must itself be prime. It only says that it has a prime divisor not already in the list.
For example, using the primes
we form
This number is not prime, since
But both and are primes not in the original list. That is exactly what the proof needs.
The argument produces a new prime indirectly through divisibility.
Why the Remainder Is Important
The key property of is that it leaves remainder when divided by each prime in the list:
for every .
Thus no listed prime divides . Since every integer greater than has a prime divisor, must have a prime divisor outside the list.
This is a typical number-theoretic argument. We build an integer with a prescribed divisibility pattern and then use factorization to force a conclusion.
Infinitude Beyond All Bounds
Euclid’s theorem implies that primes are unbounded. For every number , there exists a prime greater than .
Indeed, suppose all primes were at most . Then there would be only finitely many of them, since there are only finitely many positive integers less than or equal to . This would contradict the infinitude of primes.
Thus primes do not merely occur infinitely often as an abstract set. They occur beyond every finite bound.
A Variant Proof Using Factorials
There is another common proof using factorials.
Let . Consider
For every integer with
we have
Therefore
So none of the integers
divides .
Since , it has a prime divisor . This prime divisor cannot satisfy , because then would divide , contradicting the remainder calculation.
Hence
Since was arbitrary, there are primes larger than every integer .
Relation to Unique Factorization
The proof of the infinitude of primes uses the fact that every integer greater than has a prime divisor. This is the existence part of unique prime factorization.
It does not require the full uniqueness statement. However, the theorem fits naturally after prime factorization because primes are then understood as the irreducible components of integers.
Once every integer decomposes into primes, it becomes unavoidable to ask whether the supply of such components is finite or infinite.
Infinitely Many Primes in Special Classes
Euclid’s theorem proves that primes are infinite in total. A deeper question asks whether infinitely many primes occur in special arithmetic classes.
For example, are there infinitely many primes congruent to modulo ? Are there infinitely many primes congruent to modulo ? More generally, if
are there infinitely many primes of the form
Dirichlet’s theorem on arithmetic progressions answers yes. This theorem belongs to analytic number theory and requires tools far beyond Euclid’s argument.
Euclid’s theorem is therefore the first member of a much larger family of questions about the distribution of primes.
Role in Number Theory
The infinitude of primes shows that arithmetic has no finite list of basic multiplicative atoms. No matter how many primes are known, more primes remain.
This fact is foundational for prime distribution, analytic number theory, algebraic number theory, and cryptography. It also marks the beginning of a recurring theme: primes are simple to define but difficult to understand in their global behavior.
The proof itself is a model of number-theoretic reasoning. It combines contradiction, divisibility, remainders, and prime factorization in a compact argument that continues to influence modern mathematics.