Project Euler Problem 36