Solution to problems on http://projecteuler.net/