euler problem 31 coin sums better solution