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
PostgreSQLv16

Aici va apărea rezultatul execuției codului

Visible tests
1
Input
15
Expected9
2
Input
6
Expected6
3
Input
12
Expected16
4
Input
1
Expected0
5
Input
19
Expected1
6
Input
13
Expected1
Focus radio
Paused · SomaFM · Fluid