bugfix prime numbers gen
This commit is contained in:
parent
8988e22928
commit
96d443b55c
|
@ -42,7 +42,7 @@
|
|||
(set! *prime (getprime-rec *prime)))
|
||||
|
||||
(define (getprime-rec prime)
|
||||
(if (= 0 (+ (remainder prime 2) (remainder prime 3) (remainder prime 5) (remainder prime 7) (remainder prime 10)))
|
||||
(if (not (> (+ (remainder prime 2) (remainder prime 3) (remainder prime 5) (remainder prime 7) (remainder prime 10)) 0))
|
||||
prime
|
||||
(getpreime-rec (+ prime 1))
|
||||
))
|
||||
|
|
Loading…
Reference in New Issue