Project Euler Problem 25