Halli hallo! Once a general community blog, WTE has resurrected itself in the hope of making this a meeting point for German language enthusiasts interested in practicing their schriftliches Deutsch. If you'd like to be added as a member to participate, send an e-mail to the.cunning.ham@gmail dot com or comment on any post with your e-mail addy.

## 2 Comments:

you should use this:

(define (search-for-primes x n)

(if (= n 0)

(print "done!")

(cond ((prime? (+ x 1))

(begin

(print (+ x 1))

(print " ")

(search-for-primes (+ x 1) (- n 1))))

(else

(search-for-primes (+ x 1) n)))))

I would if I could put in infinity for n.

Post a Comment

<< Home