solved euler problem 6