Solved euler 9