Код Ревью
Сравни свои решения
#| BEGIN (Введите свое решение) |#
(define (smallest-divisor n)
(find-divisor n 2))
(define (find-divisor n test-divisor)
(cond ((> (square test-divisor) n) n)
((divides? test-divisor n) test-divisor)
(else (find-divisor n (next test-divisor)))))
(define (square n)
(* n n))
(define (divides? a b)
(= (remainder b a) 0))
(define (next n)
(if (= n 2) 3 (+ n 2)))
#| END |#