Project Euler.

Solution of problem 89.