solved euler 3