Classes of polynomials having only one non-cyclotomic irreducible factor