https://www.acmicpc.net/problem/17427
start = time.time()
input_ = int(input())
sum(map(lambda x : get_divisor(x), range(1, input_ + 1)))
print(time.time() - start)
def get_divisor(n):
total = 0
j = 1
while j <= n:
if n % j == 0:
total += j
j += 1
return total
def get_divisor(n):
total = 0
for j in range(1, int(n**(1/2)) + 1):
if n % j == 0:
total += j
if n // j != j:
total += n // j
return total
n = int(input())
print(sum([(n // i) * i for i in range(1, n + 1)]))