Project Euler # 1 Solution