Project Euler Problem 45