solved problem 27
primes checking
using library, naive checking
add utility lib
solved problem 31
optim of 031.py