Finding Square Roots Using Prime Factorisation