sicp-ex-1.21



<< Previous exercise (1.20) | sicp-solutions | Next exercise (1.22) >>


The smallest divisor of each of 199, 1999, 19999 is, respectively, 199, 1999, 7.

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