I would appreciate feedback on whether the specific contradiction I make is valid in my attempt to prove that there are infinitely many primes, this on a conceptual level. For context, I subsequently saw a correct proof which was very similar, but worked through this before and have some issues with my "proof" which I will describe in a bit. This is my reasoning:
- First, I assume that there is a finite number of primes, in order to show how a contradiction is implicated from this. If there are a finite number of primes, there must be a greatest prime number P.
- Consider the integer Q, which is formed by taking the product of every prime number, including P.
- Q+1 cannot have a prime factor, as none of the prime factors of Q can be factors of Q+1: this is because the difference between Q and Q+1 would have to be divisible by a prime factor of Q for Q+1 to be divisible by the same factor, which is not possible.
- Using the fact that all natural numbers greater than one are either prime or have a prime divisor, I conclude that Q+1 is prime.
- Q+1 is larger than P, contradicting the fact that P is the largest prime number. Therefore, the hypothesis from which this contradiction followed (that there is a finite number of primes) is false.
I am wondering if this works or if we would need to have a direct proof if we wanted to use this reasoning, which says for every prime number P, we can construct a greater prime number. This is because I am unsure whether it is correct for us to identify a greatest prime number and then construct an even greater prime number right afterwards- this feels like it was not legitimate to even say Q+1 is greater than P, as when we assumed a greatest prime number Q+1 could have been that number. This has made me wonder if the contradiction I have built is a legitimate contradiction, as P and Q could be the exact same quantity, but due to a fallacy in reasoning I have deemed them distinct.
thanks