smallest-divisor from book. [1.21]
Merge branch 'ex1.21'