Problem 1 in Project Euler.