Problem 1 on Project Euler