Computation of Newton sum rules for associated and co-recursive classical orthogonal polynomials