]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/math/primes/miller-rabin/miller-rabin-docs.factor
factor: trim using lists
[factor.git] / basis / math / primes / miller-rabin / miller-rabin-docs.factor
index c374821dd6bd456e1ad6987b62b0bb6cac216c5d..81aa15e49c11b2c55833ee62b51a320bc0092aef 100644 (file)
@@ -1,12 +1,13 @@
 ! Copyright (C) 2009 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: help.markup help.syntax kernel sequences math ;
+USING: help.markup help.syntax kernel math
+math.primes.miller-rabin ;
 IN: math.primes.miller-rabin
 
 HELP: miller-rabin
 { $values
     { "n" integer }
-    { "?" "a boolean" }
+    { "?" boolean }
 }
 { $description "Returns true if the number is a prime. Calls " { $link miller-rabin* } " with a default of 10 Miller-Rabin tests." } ;
 
@@ -15,7 +16,7 @@ HELP: miller-rabin
 HELP: miller-rabin*
 { $values
     { "n" integer } { "numtrials" integer }
-    { "?" "a boolean" }
+    { "?" boolean }
 }
 { $description "Performs " { $snippet "numtrials" } " trials of the Miller-Rabin probabilistic primality test algorithm and returns true if prime." } ;