Optimized Problem 12 and DivisorSigma