I read this proposition from Lahtonen's comments here and I wish to make a proof for that.
Let $p$ be a prime and $f$ be a irreducible polynomial of degree $m$ over $\Bbb{F}_p$. Then $f$ remains irreducible over $\Bbb{F}_{p^n}$ iff $\gcd(m,n) = 1$.
I think I am able to prove $\Leftarrow,$ how do I prove $\Rightarrow$?
$\Leftarrow$: First, observe that $f$ divides $x^{p^m} - x$ and $x^{p^m} -x$ splits into linear factors in $\Bbb{F}_{p^m}$. So $f$ has a root $\beta \in \Bbb{F}_{p^m}$. We have $[\Bbb{F}_p(\beta):\Bbb{F}_p] = m$ and $[\Bbb{F}_{p^n}: \Bbb{F}_p] = n$. Since $\gcd(m,n)=1$, $[\Bbb{F}_{p^n}(\beta):\Bbb{F}_p] =mn$. By multiplicative property of degrees, $[\Bbb{F}_{p^n}(\beta):\Bbb{F}_{p^n}] =m$ and so $f$ is the minimal polynomial of $\beta$ over $\Bbb{F}_{p^n}$. In particular, $f$ is irreducible.
For $\Rightarrow$, I know that $[\Bbb{F}_{p^n}(\beta): \Bbb{F}_p] = mn$ so $\Bbb{F}_{p^n}(\beta) \cong \Bbb{F}_{p^{mn}}$....