If the polynomial has two terms, we check if the terms are the difference of squares and then factor it if so.
If the polynomial has three terms, we check if we can factor the trinomial into the product of two binomials or if it is a perfect square trinomial, and factor it if so.
If the polynomial has four or more terms, we can try to factor it by grouping.
If the polynomial does not have a GCF and cannot be factored, it is a prime polynomial.