Optimize CommonPrimeDivisors
Finish chap 10