Project Euler Problem 34