Show that the polynomials $\displaystyle g = X^3 + X + 1 $ and $\displaystyle h = X^3 + X^2 + 1 $ are theonlypolynomials of degree 3 which are irreducible over F2.

I know that they are both irreducible over F2 since they both have degree $\displaystyle \leq 3$ and have no roots in F2, but I'm stuck on how to show they're the only ones...can anyone please help?

Thanks in advance!