Project Euler, Problem 40 AC.