Skip to main content
Examonaut

Topic 1 · Lesson 5 of 6

Infinitely many primes

The proof that there are infinitely many primesA level only

A prime is a whole number greater than 1 whose only factors are 1 and itself. Every whole number greater than 1 is either prime or has a prime factor. The idea of the proof is in the diagram below: multiply some primes together, then add 1. The product is a multiple of every prime you used, so the next number up is one past a multiple of each of them, and none of them can divide it.

2526272829303132÷ by 2÷ by 3÷ by 52×3×5+130 is a multiple of every prime in the list, so 31 is1 more than a multiple of each: none of them divides it
  1. Assume, for contradiction, that there are finitely many primes. Then they can all be listed: p1,p2,p3,…,pnp_1, p_2, p_3, \ldots, p_n.
  2. Let N=p1×p2×⋯×pn+1N = p_1 \times p_2 \times \cdots \times p_n + 1.
  3. Dividing NN by any prime pip_i on the list leaves remainder 1, so none of the listed primes is a factor of NN.
  4. N>1N > 1, so NN is either prime or has a prime factor. Either way, there is a prime that is not on the list.
  5. This contradicts the assumption that the list contained every prime.
  6. So there are infinitely many primes.

A common misunderstanding is that NN itself must be prime. It need not be: 2×3×5×7×11×13+1=30031=59×5092 \times 3 \times 5 \times 7 \times 11 \times 13 + 1 = 30031 = 59 \times 509. The proof only needs NN to have some prime factor missing from the list, and 59 and 509 are both missing.

Practise this topic

Both are part of Premium.