euler problem 47