(PHP 4 >= 4.0.4)
int gmp_legendre (resource a, resource p)
int gmp_legendre
a と p の ルジェンドル記号 を計算します。p は、奇数でかつ正である必要 があります。