I'm stuck on this question too long, i'd like to get a clue or an idea for solution.
Let $R(p)$ be the remainder when the product $\prod_{x=0}^{p-1} (x^3 -3x +4)$ is divided by $p$. For example $R(11)=0$ and $R(29)=13$. Find the sum of $R(p)$ over all primes $p$ between $10^9$ and $1.1*10^9$
I programmed for low primes, and saw almost exact $\frac{2}{3}$ of the primes the product is zero. I tried to get rid of some primes, by finding a shorter formula for $p$, checking for rational root of the polynom (which doesnt exist) or checking which primes have roots mod $p$ for the polynom , as described here: How does Mathematica solve $f(x)\equiv 0\pmod p$? but it doesn't bring a solution for a general prime p