A straight forward solution of problem 10
Fixed a bug that isPrime in p7.py cannot deal with numbers smaller than 4.