solved euler 51