Solving problems from http://projecteuler.net/problems