Solve euler 3 in Icon