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
Prijavi se da vidiš povijest predaja
PrijavaPrijavi se da koristiš AI mentora
PrijavaVisible tests
1
Input
12Expected
True2
Input
28Expected
False3
Input
24Expected
True4
Input
6Expected
False5
Input
1Expected
False6
Input
945Expected
TrueFocus radio
Paused · SomaFM · Fluid