Solve euler 002