Problem 17: Project Euler