The math.primes.miller-rabin vocabulary implements the Miller-Rabin probabilistic primality test and utility words that use it in order to generate random prime numbers.

The Miller-Rabin probabilistic primality test:

The Miller-Rabin probabilistic primality test:

miller-rabin ( n -- ? )

miller-rabin* ( n numtrials -- ? )

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.99 x86.64 (2173, heads/master-f3ee5c5979, Sep 18 2022 13:17:51)