icon

Maths in a minute: How many primes?

Share this page

Maths in a minute: How many primes?

Euclid

Euclid of Alexandria

Primes are natural numbers that are only divisible by themselves and 1. The first few examples are $2$, $3$, $5$, $7$, and $11$. And the good news is that they go on forever. No matter how far you move up the number line there'll always be another prime ahead of you. The fact that there are infinitely many primes was already known to the ancient Greeks. Here's a proof, attributed to the most famous Greek mathematician of them all, Euclid (although he didn't use quite the same language and concepts as we do today).

Suppose that there are only finitely many primes. We can label them $p_1$, $p_2$, $p_3$, etc, up to $p_n$, the very last prime. Now define the number $$P = p_1 \times p_2 \times p_3 ... \times p_n+1.$$ As an example, if there were only five primes $p_1=2$, $p_2=3$, $p_3=5$, $p_4=7$, and $p_5=11$, then we'd have $$P = 2 \times 3 \times 5 \times 7 \times 11 +1 = 2311.$$ Now, if $P$ is itself a prime number (as it is in our example), then clearly it can't be one of the primes in our list: that's because it's bigger than all of them. If $P$ is not prime, then, like any other natural number, it can be written as a product of primes. Let's pick one of the primes that divides $P$ and denote it by $p$. Now $p$ cannot be any of the primes $p_1$ up to $p_n$ because if it was, then it would divide $$P - (p_1 \times p_2 \times p_3 ... \times p_n) = 1,$$ which is impossible because $1$ is not divisible by any natural number. Therefore the collection $p_1$, $p_2$, $p_3$, etc, up to $p_n$ cannot contain all of the primes as we had assumed. This contradiction means that there must be infinitely many primes.

You can read more about prime numbers and number theory on Plus.

Read more about...