look first for the common factor check by multiplying if polynomial is a prime state this.

y^2-y+0

y^2 - y + 0 = y(y - 1)