util/prime library

Utilities related to prime numbers.

Functions

isProbablyPrime(BigInt n, {int rounds = 20}) bool
Performs a probabilistic primality test using the Miller-Rabin algorithm.