Solved euler 3