problem 45

c++ and python
problem 46

add quicker is_prime() to util.py