My proof is:
Let $N=pq$. If $p=k\sqrt{N}$ where $k\in\mathbb{Q}^+$, then $q=\dfrac{\sqrt{N}}{k}$.
If $k=1$, clearly $\sqrt{N}$ is a factor of $N$.
If $k<1$, then $p<\sqrt{N}$, so there must be at least one factor of $N$ less than $\sqrt{N}$.
If $k>1$, then $q<\sqrt{N}$, so there must be at least one factor of $N$ less than $\sqrt{N}$.
Therefore, there always exists at leastone number less than or equal to $\sqrt{N}$ that divides $N$. So, if there is no such number, $N$ is definitely prime.
Where did I go wrong?