At the moment I'm working on proving some statements and I've run into one that I can't seem to wrap my head around. It goes like this:
For $n \in \mathbb{Z}^+$, we define $\sqrt{n}$ as the real number $a$ such that $a^2 = n$. Show that if an integer $n > 1$ is composite, then it has a prime less than or equal to $\sqrt{n}$.
So far I've really only been able to prove by example using certain numbers but apart from that I'm rather lost on how I should approach and prove the statement. Any suggestions or help is much appreciated.