Question: Prove that for any given $n \in \mathbb N$, $\phi(x) = n$ has only finitely many solutions.
My attempt:
Let there be infinite solutions for
$$\phi(x) = n$$
so every natural number greater than $x$ has only $n$ primes before it. Thus, every number after the last prime is composite.
Now, let the finite set of primes be $p_1,p_2,...,p_n$.
Now, the number $p_1p_2...p_n + 1$ is relatively prime to all the finite primes, thus it is a new prime
This contradiction violates our assumption of a finite set of primes, so our assumption of infinite solutions is wrong.
Hence, $\phi(x) = n$ has only finite solutions.
Issue: I feel that the approach of $p_1p_2...p_n + 1$ is wrong and doesn't prove that the number itself is prime, but since it is of form $1 \text{ mod } p_i$ for $i \epsilon \text{ 1,2,...,n }$, thus it must be prime to all of them. Also, something about this proof feels off in terms of the assumptions. Any help is very appreciated!
PS: I know this is a duplicate but since I want to know what is wrong with my approach, I thought of sharing my method to get the explanation over the finite set of prime logic and the proof approach