I know a proof of this statement, see How to demonstrate that there is no all-prime generating polynomial with rational cofficents?
My question is that, in the book
Introduction to Modern Number Theory - Fundamental Problems, Ideas and Theories
by Manin, Yu. I., Panchishkin, Alexei A,
it says (p16)

I would like to know if this is correct. If I understand it correctly, then $x^2+1$ is a counterexample of this, by considering the Legendre symbol $(\frac{-1}{p}) = (-1)^{\frac{p-1}{2}}$.