Quadratic Congruence Discriminant Criterion