Proper Divisor Sum
Proper divisors are all positive divisors of a number except the number itself. For example, the proper divisors of 15 are 1, 3, and 5. Given a positive integer input_num, return the sum of all its proper divisors.
Примеры
Ввод
15Вывод
9Ввод
6Вывод
6Ввод
12Вывод
16Нужно реализовать
def aliquot_sum(input_num: int) -> int:
Теги
math
Logi sisse, et näha esituste ajalugu
Logi sisseLogi sisse, et kasutada AI mentorit
Logi sisseVisible tests
1
Input
15Expected
92
Input
6Expected
63
Input
12Expected
164
Input
1Expected
05
Input
19Expected
16
Input
13Expected
1Focus radio
Paused · SomaFM · Fluid