Project Euler Problem 49.