The Hooley-Huxley contour method for problems in number fields II: factorization and divisibility