Functions written to solve problems on http://projecteuler.net/