Project Euler Problem 9