Prove by contradiction: For all prime $p$, $\sqrt p$ is irrational.
Hint: Use the following theorem: For every prime $p$ and all integers $a,b$ if $p\mid ab$, then $p\mid a$ or $p\mid b$.
I am currently here: Assume $\sqrt p$ is rational, then, $\sqrt p = \dfrac a b$ where a and b are integers. Then, $p = \dfrac{a^2}{b^2}$
Now I am stuck, I don't understand how to proceed from here nor how to use the theorem given as a hint.