Prove that there are exactly $$\frac{p-1}{2} - \phi(p-1)$$ incongruent quadratic nonresidues modulo $p$ that are not primitive roots modulo $p$.
I have been looking at this problem for quite some time, but have not been able to make any headway. Can you assist?