Problems from projecteuler.net, solved in python