euler 40 solution