method
prime?
v2_6_3 -
Show latest stable
- Class:
OpenSSL::BN
prime?(p1 = v1)public
Performs a Miller-Rabin probabilistic primality test with checks iterations. If checks is not specified, a number of iterations is used that yields a false positive rate of at most 2^-80 for random input.
Parameters
-
checks - integer