Code to solve problems on projecteuler.net