summaryrefslogtreecommitdiffstats
path: root/factor.txi
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:31 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:31 -0800
commit5145dd3aa0c02c9fc496d1432fc4410674206e1d (patch)
tree540afc30c51da085f5bd8ec3f4c89f6496e7900d /factor.txi
parent8466d8cfa486fb30d1755c4261b781135083787b (diff)
downloadslib-5145dd3aa0c02c9fc496d1432fc4410674206e1d.tar.gz
slib-5145dd3aa0c02c9fc496d1432fc4410674206e1d.zip
Import Upstream version 3a2upstream/3a2
Diffstat (limited to 'factor.txi')
-rw-r--r--factor.txi5
1 files changed, 5 insertions, 0 deletions
diff --git a/factor.txi b/factor.txi
index 38c0dd1..90569ea 100644
--- a/factor.txi
+++ b/factor.txi
@@ -22,6 +22,7 @@ Returns the value (+1, @minus{}1, or 0) of the Jacobi-Symbol of
exact non-negative integer @var{p} and exact positive odd integer @var{q}.
@end defun
+
@defvar prime:trials
@var{prime:trials} the maxinum number of iterations of Solovay-Strassen that will
@@ -35,6 +36,7 @@ There is a slight chance @code{(expt 2 (- prime:trials))} that a
composite will return @code{#t}.
@end defun
+
@defun primes< start count
Returns a list of the first @var{count} prime numbers less than
@@ -43,14 +45,17 @@ less than @var{start}, then the returned list will have fewer than
@var{start} elements.
@end defun
+
@defun primes> start count
Returns a list of the first @var{count} prime numbers greater than @var{start}.
@end defun
+
@defun factor k
Returns a list of the prime factors of @var{k}. The order of the
factors is unspecified. In order to obtain a sorted list do
@code{(sort! (factor @var{k}) <)}.
@end defun
+