Relative primeness of two polynomials