adding solution to euler project problem 2