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 to represent the number that we would get if we multiplied every value in this list together. We will also assign the value of .
Now, even though we dont know the exact value of , 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.
-
If is prime, then the list of prime numbers that we used to create is incomplete. Therefore there must be an infinite amount of primes.
-
If is not prime, then it must have at least 1 prime factor that is a multiple of . Because this factor is prime, it must appear in our list.
So is a factor of both and , 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 . Let . Let .
-
If is prime then there is at least 1 prime not in the list, itself, and we have reached a contradiction.
-
If is not prime then there must be at least 1 prime factor that divides . Then 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 divides both and , so it must divide the difference of them. This difference is . A number can only divide if it itself is , therefore 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: