Solution to SICP Exercise 1.21

Structure and Interpretation of Computer Programs

Solution to Exercise 1.21:

> (smallest-divisor 199)
199
> (smallest-divisor 1999)
1999
> (smallest-divisor 19999)
7

Advertisements