所以这里是代码:
(define (time-prime-test n)
(newline)
(display n)
(start-prime-test n (runtime)))
(define (start-prime-test n start-time)
(if (prime? n)
(report-prime (- (runtime) start-time))))
(define (report-prime elapsed-time)
(display " *** ")
(display elapsed-time))
(define (search-for-primes n m)
(if (< n m)
((time-prime-test n)
(search-for-primes (+ n 1) m))
(display " calculating stopped. ")))
(search-for-primes 100000 100020)
在“计算停止”后出现此错误。已显示。如下所示:
100017 100018 100019 * 54 计算停止。. . 申请:不是程序;期望一个可以应用于给
定参数的过程:#<void>
arguments...:
#<void>