euler project problem 39