Abundant Number Check

A number is called abundant when the sum of its proper divisors is greater than the number itself. For example, the proper divisors of 12 are 1, 2, 3, 4, and 6, and their sum is greater than 12. Write a function is_abundant that returns True if n is abundant, otherwise return False.

Примеры

Ввод
12
Вывод
True
Ввод
28
Вывод
False
Ввод
24
Вывод
True

Нужно реализовать

def is_abundant(n: int) -> bool:

Теги

math
PostgreSQLv16

Εδώ θα εμφανιστεί το αποτέλεσμα εκτέλεσης του κώδικα

Visible tests
1
Input
12
ExpectedTrue
2
Input
28
ExpectedFalse
3
Input
24
ExpectedTrue
4
Input
6
ExpectedFalse
5
Input
1
ExpectedFalse
6
Input
945
ExpectedTrue
Focus radio
Paused · SomaFM · Fluid