1 ! Copyright (C) 2009 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: help.markup help.syntax kernel sequences math ;
4 IN: math.primes.miller-rabin
11 { $description "Returns true if the number is a prime. Calls " { $link miller-rabin* } " with a default of 10 Miller-Rabin tests." } ;
13 { miller-rabin miller-rabin* } related-words
17 { "n" integer } { "numtrials" integer }
20 { $description "Performs " { $snippet "numtrials" } " trials of the Miller-Rabin probabilistic primality test algorithm and returns true if prime." } ;
22 ARTICLE: "math.primes.miller-rabin" "Miller-Rabin probabilistic primality test"
23 "The " { $vocab-link "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." $nl
24 "The Miller-Rabin probabilistic primality test:"
30 ABOUT: "math.primes.miller-rabin"