Project Euler - Problem 1