Project Euler, Problem 42 AC.