Added more optimization functions (sq root) to prime calculator