How can I factorize $$p(x)=x^4+1 \in \mathbb{Z_5}$$ and $$p(x)=x^4+1 \in \mathbb{Z}_3$$ into prime polynomials?
Is $(x^2+2)(x^2+3)$ correct for $\mathbb{Z}_5$? Because $2 \cdot3 = 1$ and $2+3 = 0$ in $\mathbb{Z}_5$.
And how is it done for $\mathbb{Z}_3$?