Project Euler.

Solution of problem 92.