Let $F$ be a field, and let $f(x)\in F[x]$ be a polynomial of prime degree. Suppose for every field extension $K$ of $F$ that if $f$ has a root in $K$, then $f$ splits over $K$. Prove that either $f$ is irreducible over $F$ or $f$ has a root (and hence splits) in $F$.
Suppose $f$ is reducible over $F$ then there exists a $a$ in $F$ such that $f(x)=(x-a)g(x)$ which means that $f$ has a root in $F$. I can not understand what I am doing wrong, someone could help me please (where do I have to use the polynomial has prime degree?)? Thank you.
Hint: Think about the degree of each irreducible factor of $f$, by considering the degree of the field extension obtained by adjoining a root.
Stronger hint:
Full proof: