Solving euler3