final version of problem 45
Wrote prime-testing in 37