We wish to prove that no irreducible element in a Unique Factorization Domain $D$ can be written as a square of some element in its field of fraction $F$.
Take $x$ in $D$, and we go for a contradiction. Write $x=\left(\frac{a}{b}\right)^{2}$. My goal is, of course, to contradict the irreducibility of $x$. But, I'm having some trouble.
You can assume $a$ and $b$ coprime. We get $xb^2 = a^2$. Now a prime factor of $a$ must divide $x$ 2 times, thus $x$ is not irriducible. Contradiction.