MathipediaThe free math encyclopedia

Euclid's Theorem

Read first

Euclid’s theorem proves that there are infinite prime numbers. The proof uses a tactic called “proof by cases”, which checks all possible cases (2 in this case) and confirms whether something is true or false. In the case of Euclid’s proof, we start with an assumption that we will disprove in every case if it were true.

Explained Proof

It starts like this: Assume that there is a finite amount of prime numbers. If this were the case we could put them all in a list. Let’s use PP to represent the number that we would get if we multiplied every value in this list together. We will also assign qq the value of P+1P+1.

P=p1p2p3pnq=P+1\begin{align} P = p_{1}*p_{2}*p_{3}*\dots*p_{n} \\ q=P+1 \end{align}

Now, even though we dont know the exact value of qq, there are two possibilities for it: either it is a prime number or it is not a prime number; these are the two cases we will look at.

  1. If qq is prime, then the list of prime numbers that we used to create PP is incomplete. Therefore there must be an infinite amount of primes.

  2. If qq is not prime, then it must have at least 1 prime factor pp that is a multiple of qq. Because this factor is prime, it must appear in our list.

    So pp is a factor of both qq and PP, and it can be shown that if a number is a factor of two numbers, then it is also a factor of the difference between those numbers. (see Divisibility)

Proof

Assume there are a finite amount of prime numbers, then we could define a finite list of those prime numbers p1,p2,...,pnp_1,p_2,...,p_n. Let P=p1p2...pnP=p_1*p_2*...*p_n. Let q=P+1q=P+1.

  1. If qq is prime then there is at least 1 prime not in the list, qq itself, and we have reached a contradiction.

  2. If qq is not prime then there must be at least 1 prime factor pp that divides qq. Then pp must be present in the list of primes.

    It is simple to show that is two numbers are divided by the same factor, then that factor must also divide the difference of those factors. (Proof).

    So pp divides both PP and qq, so it must divide the difference of them. This difference is Pq=P(P+1)=1P-q=P-(P+1)=1. A number can only divide 11 if it itself is 11, therefore p=1p=1 and is not prime, which is a contradiction.

Common Fallacy

An alternate and incorrect version of the second case is commonly distributed. It is as follows: 2.

Counter example:

30031=(23571113)+1=5950930031=(2*3*5*7*11*13)+1=59*509

Sources