(define (chk-each-digit3 n) (string-scan (number->string n) "3")) (define (chk3p n) (cond ((= 0 (mod n 3)) #t) ((chk-each-digit3 n) #t) (else #f))) (define (take3 ap) (filter (^ (x) (chk3p x)) ap)) (let* ((from (read)) (to (read))) (map (^ (x) (display x) (newline)) (take3 (iota (+ 1 (- to from)) from))) )