summaryrefslogtreecommitdiff
path: root/primes.scm
diff options
context:
space:
mode:
authorAlessio Treglia <alessio@debian.org>2011-03-24 09:13:51 +0100
committerAlessio Treglia <alessio@debian.org>2011-03-24 09:13:51 +0100
commite5328e59987b90c4e98959510b810510e384650d (patch)
tree0f140b79d942c4654701d8fb4cfe2f1dd904f9f0 /primes.scm
parent36cf8384e5699cda3f1ca607753fe4d4a8515b01 (diff)
Imported Upstream version 12.0
Diffstat (limited to 'primes.scm')
-rw-r--r--primes.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/primes.scm b/primes.scm
index 7e332e4..d958615 100644
--- a/primes.scm
+++ b/primes.scm
@@ -4637,7 +4637,7 @@
(call-with-exit
(lambda (return)
(do ((p 65539 (+ p 2)))
- (#f) ; now dumbly check all odd numbers above 65537 -- perhaps c-g? here to abort loop?
+ (#f) ; now dumbly check all odd numbers above 65537
(do ((val (/ num p) (/ num p)))
((not (integer? val)))
(set! factors (cons p factors))
@@ -4691,7 +4691,7 @@
!#
#!
-(do ((i 0 (1+ i)))
+(do ((i 0 (+ 1 i)))
((= i 10))
(let ((num (random (* 75000 75000))))
(display (format #f "~A " num))