For Proof of Contradiction, we are going to start with the following assumption:
There is a finite number of prime numbers.
Let's call these numbers p1, p2, p3 ... pn.
Next, we are going to create a new number, N, by multiplying all of our prime numbers, and then adding 1. This means:
N = p1 x p2 x p3 x ... x pn + 1
Now, let's break this down. N is now a number that is NOT divisible by ANY of the numbers in our list of prime numbers, because we added 1 (dividing N by any of the numbers in our list of "p" prime numbers results in a remainder of 1). Now, the point of this fact isn't that we've created a new prime number (it could very well be a composite number), but rather that BECAUSE we can't divide this new number by any of our prime numbers from our list, that this new number, N, is either prime, itself, OR it is a composite number.
Now, because of the Unique Prime Factorization Theorem, we know that:
Existence: Every integer greater than 1 either is a prime number itself or can be factored into prime numbers.
Uniqueness: This factorization is unique, up to the order of the factors. That means if you factorize a number into primes in two different ways, the sets of primes you get will be the same, though they might appear in a different order.
Because of this theorem, we know that N
does have prime factors, which means that either N is prime, or it has prime factors that are NOT in our current list (because by adding 1, we already ensured that none of our current numbers can be used to divide N evenly). This, then, proves that our finite list of prime numbers is NOT accurate, thereby proving, by contradiction, that there are infinite prime numbers.