Converting terms into primitive polynomials optimized [A.Sheplyakov]