Find all irreducible polynomials of degrees $2$ and $3$ in $\Bbb{Z}_{2}[x]$.
I tried to follow (https://math.stackexchange.com/q/32416)'s answer but this part in their answer I do not understand:
A polynomial $p(x)$ of degree $2$ or $3$ is irreducible if and only if it does not have linear factors. Therefore, it suffices to show that $p(0) = p(1) = 1$. This quickly tells us that $x^2 + x + 1$ is the only irreducible polynomial of degree $2$. This also tells us that $x^3 + x^2 + 1$ and $x^3 + x + 1$ are the only irreducible polynomials of degree $3$.
The part I don't understand is "it suffices to show $p(0)=p(1)=1$". Could someone please explain what this means and how this finds the irreducible polynomials?
Transform the "if and only if" statement as follows.
By the factor theorem,
Take the negation on both sides.
Since we are in $\Bbb{Z}_2$, the RHS can be simply written as follows.
In $\Bbb{Z}_2[X]$,
This helps us to select the irreducible polynomials of degree $\le 3$ by eliminating those with even number of terms and/or no constant term.