The classic proof of $\sqrt{2}$ is irrational starts with the assumption that $\sqrt{2}$ can be represented as a rational number $\frac pq$ where $(p,q \in \Bbb Z , q\neq 0$, p and q are coprimes)
$$\Rightarrow \sqrt{2^2}=\frac {p^2}{q^2}$$ $$\Rightarrow 2q^2 = p^2$$ Since, $$2|p^2 \Rightarrow 2|p$$ $$\Rightarrow p= 2r$$ where, $(r \in \Bbb Z)$ $$\Rightarrow 2q^2=(2r)^2$$ $$\Rightarrow q^2 = 2r^2$$ Since, $$2|q^2 \Rightarrow 2|q$$ since p and q have a common factor of 2, this contradicts the statement that p and q are coprimes and hence our assumption that $\sqrt2$ is rational is incorrect which implies that $\sqrt2$ is irrational. While this argument is pretty reasonable,
I think it can be shortened, in the second line of the proof (i.e. $2q^2=p^2$) since p and q are coprimes they don't share any common prime factors, and since p is an integer which is divisible by 2, its square (i.e. $p^2$) must have an even number of 2s but as we can see it only has one factor of $2$ (i.e.$2q^2=p^2$) which implies that $p$ is not an integer which is a contradiction to the given statement that $p$ is an integer. Hence $\sqrt2$ is an irrational number.
Please correct me if this proof is wrong.