(PHP 4 >= 4.0.4)
int gmp_legendre (resource a, resource p)
int gmp_legendre
Compute the Legendre symbol of a and p. p should be odd and must be positive.