Lably
Skip to content

Euclid's theorem

Infinitely many prime numbers exist

  • 8 min read
  • 6 chapters

Related on Lably

Through Infinite set, Prime number and Euclid

Euclid's proof

Euclid offered a proof in his work Elements (Book IX, Proposition 20), which is paraphrased here.

Consider any finite list of prime numbers p1, p2, ..., pn. It will be shown that there exists at least one additional prime number not included in this list. Let P be the product of all the prime numbers in the list: P = p1p2⋅⋅⋅pn. Let q = P + 1. Since q is either prime or not:

  • If q is prime, then there is at least one more prime that is not in the list, namely, q itself.
  • If q is not prime, then some prime factor p divides q. If this factor p were in our list, then it would also divide P (since P is the product of every number in the list). If p divides P and q, then p must also divide the difference of the two numbers, which is (P + 1) − P or just 1. Since no prime number divides 1, p cannot be in the list. This means that at least one more prime number exists that is not in the list.

This proves that for every finite list of prime numbers there is a prime number not in the list. In the original work, Euclid denoted the arbitrary finite set of prime numbers as A, B, Γ.

Euclid is often erroneously reported to have proved this result by contradiction beginning with the assumption that the finite set initially considered contains all prime numbers, though it is actually a proof by cases, a direct proof method. The philosopher Torkel Franzén, in a book on logic, states, "Euclid's proof that there are infinitely many primes is not an indirect proof [...] The argument is sometimes formulated as an indirect proof by replacing it with the assumption 'Suppose q1, ..., qn are all the primes'. However, since this assumption isn't even used in the proof, the reformulation is pointless."

Variations

Several variations on Euclid's proof exist, including the following:

Let n>1 be a positive integer.
Let N=n!+1, with n!=1⋅2⋯n.
By the fundamental theorem of arithmetic, N has some prime divisor p.
On the other hand, the integers 2,…,n are not divisors of N (it gives a remainder of 1 when divided by each).
Hence p>n.

Therefore, for every positive integer there exists a prime number greater than it.
The conclusion is that the number of primes is infinite.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Discrete mathematics