solved euler47