I found the following question in S.-T. Yau College Student Mathematics Contest 2013:
- Find a polynomial $f(x)$ with integer coefficients which has a root over $\mathbb{F}_p$ for each prime $p$ but has not root over $\mathbb{Q}$.
- What is the smallest possible degree of $f$ $?$
Prior to that I searched for a polynomial with integer coeffients which is irreducible in $\mathbb{Q}[x]$ but is reducible modulo every prime $p$. All roots of $x^4+1$ are roots of $x^{p^2}-x$.Which means any root of $x^4+1$ is at most of degree 2 over $\mathbb{F}_p$,and $x^4+1$ cannot be irreducible over $\mathbb{F}_p$.
But irreducible not not equivalent to have no root.How can I use the ideas in this question$?$