Solve Euler 19