modified nextprime to end prime check at sqrt(prime_candidate)
problem 10, using new lib utility module