euler3 solution