Proof (irreducible polnomial iff transitive Galois group)
If $f = gh$ for $g,h\in K[X]$ with $\deg g,h>0$, then any element $σ\in \Gal(f/K)$ sends a root of $g$ to a root of $g$ and a root of $h$ to a root of $h$. Since $f$ is separable, $g,h$ do not share any roots, so $σ$ is not transitive.
Conversely if $f$ is irreducible, then $L = K(α)$ for any root $α$ of $f$, and $f$ is the minimal polynomial of $α$ over $K$. We showed $\sb{σ(α)}{σ\in \Gal(L/K)} = \set{α_1, \ldots, α_n}$, so $\Gal(L/K)$ is transitive.