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.