In my math course, it is written that since over $\mathbb{F}_5[X]$, $P$ has no root in $\mathbb{F}_{25}$, it is irreducible over $\mathbb{Q}[X]$ by Gauss Lemma.
I don't really understand…
If we prove that $P$ is irreducible over $\mathbb{Z}[X]$, then Gauss proves it is over $\mathbb{Q}[X]$, but I don't understand what $\mathbb{F}_{25}$ is doing there…
The exact question was :" Find a prime $p$ such that the reduction of $P(X)$ over $\mathbb{F}_p[X]$ has no root in $\mathbb{F}_{p^2}$, then show that $P$ is irreducible"
So Gauss' lemma states that irreducibility over $\mathbb{Z}$ implies irreducibility over $\mathbb{Q}$; so it suffices to show that $f = x^5 -6x + 3$ is irreducible over $\mathbb{Z}$. Now irreducibility in $\mathbb{F}_{p}$ (provided that $p$ does not divide the leading coefficient of $f$) implies irreducibility over $\mathbb{Z}$. So if $f$ was reducible, what are the possible factorizations? Well since $\mathbb{F}_{5}[x]$ admits unique factorization, there are the following options:
Checking that $f$ has no root in $\mathbb{F}_{5}$ rules out options 1-5. Now since $\mathbb{F}_{25}$ is the splitting field extension for all quadratics over $\mathbb{F}_{5}$, if $f$ possessed an irreducible quadratic in its factorization then $f$ would have a root in $\mathbb{F}_{25}$.