(define (chk3p n) (cond ((= 0 (mod n 3)) #t) ((or (= 3 (div n 10)) (= 3 (mod n 10))) #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))) )