method

prime_fasttest?

v2_4_6 - Show latest stable - Class: OpenSSL::BN
prime_fasttest?(p1 = v1, p2 = v2)
public

Performs a Miller-Rabin primality test. This is same as #prime? except this first attempts trial divisions with some small primes.

Parameters

  • checks - integer

  • trial_div - boolean