The discriminant is
The discriminant criterion for a quadratic congruence modulo an odd prime therefore says that, for , a solution exists exactly when
The quadratic character of minus three gives
which equals precisely for . When , the polynomial is
so it also has a solution. Hence