I'm trying to understand an alternative to the standard proof that $\sqrt{2}$ is irrational, which uses the fundamental theorem of arithmetic. It doesn't look overly crisp to me at this moment.
Suppose for the sake of contradiction that there exists $x \in \mathbb{Q}$ satisfying $x^2 = 2$, and write $x = \frac{p}{q}$ where $p,q \in \mathbb{Z}$, $q \neq 0$, and $p,q$ have no common factors. Without loss of generality, we can assume $x > 0$ because $x^2 = (-x)^2$ for any $x \in \mathbb{Q}$, so we can assume $p,q \in \mathbb{N}$. Then $x^2 = \left(\frac{p}{q}\right)^2 = \frac{p^2}{q^2} = 2$, so $p^2 = 2q^2$.
I want to know say that the LHS has an even number of prime factors and the RHS has an odd number of prime factors, but for the fundamental theorem of arithmetic requires that the elements be greater than $1$. Is there a way to do this without casework?