A straightforward problem (find all integers such that $m!+3=n^2$) led me into thinking about the integers for which: $$x!=y^2$$ is true.
I argued that other than the trivial case ($x!=1$) that this can't be true. While not rigorous it went something like this:
In order for a number to be a perfect square the powers of its prime factors must be even. Now consider the largest prime in $x!$ which I shall call $k$.
$k$ can only appear once in the prime factorisation of $x!$ (assuming that $2k<x$, an assumption I can't seem to prove). Therefore $x!$ cannot be a perfect square.
This argument seems to apply for any integer power $n$ as in that scenario $k$ would have to appear $n$ times in the prime factorisation of $x!$, but I've shown that $k$ only appears once. Therefore for integer $x,y\neq 0,1\; ,$ $x!\neq y^n$.
So my questions are:
1) Is my proof correct?
2) How do I prove my assumption if so?
3) Are there any other (better) proofs for the $x!\neq y^2$ or $x!\neq y^n$?