Project Euler Problem 32