Euler 7 solution