My Project Euler solution.