Euler project problem1