gmp_prob_prime
gmp_prob_prime
(PHP 4 >= 4.0.4, PHP 5, PHP 7)
gmp_prob_prime — Check if number is "probably prime"
Description
int gmp_prob_prime ( GMP $a [, int $reps = 10 ] )
The function uses Miller-Rabin's probabilistic test to check if a number is a prime.
Parameters
-
a
-
The number being checked as a prime.
Either a GMP number resource