Solution to some of the Project Euler problems