# By default, the following code will be test by timeit function. # If you want to test the code without using timeit function, # just comment line 5 and line 68-72. code=""" #============================================== # The following code is used to give run time using datetime.now(). from datetime import datetime start_time=datetime.now() #============================================== import math def divisors_sum(n): if n==1: return 0 divisors=[1] if n%2==0: start_i=2 step=1 else: start_i=3 step=2 for i in range(start_i,int(math.sqrt(n)+1),step): if n%i==0: divisors.append(i) quotient=n//i if quotient!=i: divisors.append(quotient) return sum(divisors) abundant_nums=[12] for n in range(13,28123+1): if n