method

prime?

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: 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

Show source
Register or log in to add new notes.