gmp_legendre()
gmp_legendre - Legendre symbol
Syntax
int gmp_legendre (
resource $a,
resource $p)
Arguments
- a - It can be either a GMP number resource, or a numeric string given that it is possible to convert the latter to a number.
- p - It can be either a GMP number resource, or a numeric string given that it is possible to convert the latter to a number. Should be odd and must be positive.
Description
Compute the ? Legendre symbolof a and p. p should be odd and must be positive.
Version
PHP 4.0.4, 5
Return value
A GMP number resource.