Problem 1 solutions from Project Euler.