euler prob 14 solution