diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:06:40 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:06:40 -0800 |
commit | a69c9fb665459e2bfdbda1bf80741a0af31a7faf (patch) | |
tree | f0bc974f8805049e6b9a4e6864886298fbaa05a4 /factor.scm | |
parent | 4684239efa63dc1b2c1cbe37ef7d3062029f5532 (diff) | |
download | slib-upstream.tar.gz slib-upstream.zip |
New upstream version 3b5upstream/3b5upstream
Diffstat (limited to 'factor.scm')
-rwxr-xr-x[-rw-r--r--] | factor.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/factor.scm b/factor.scm index c445004..a008fb2 100644..100755 --- a/factor.scm +++ b/factor.scm @@ -78,7 +78,7 @@ (= (gcd a n) 1) (= (modulo (prime:jacobi-symbol a n) n) (modular:expt n a (quotient (- n 1) 2))))) - (if (positive? i) #f #t)))) + (not (positive? i))))) ;;; prime:products are products of small primes. ;;; was (comlist:notevery (lambda (prd) (= 1 (gcd n prd))) comps)) |