Primitive Test of a Polynomial