Num10 solved, though loop is very inefficient