Flowdock
method

prime_fasttest?

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

Show source
Register or log in to add new notes.