added solution to euler problem 3