Trying to solve the problem 125 of the Project Euler.