Factor completely, or state that the polynomial is prime.x2…