Esempio n. 1
0
def is_abundant(n):
    """ Returns True if n is an abundant integer. That is, the sum of all the proper divisors of n
    is greater than n itself. """
    return sum(proper_divisors(n)) > n
Esempio n. 2
0
def d(n):
    """ Returns the sum of all proper divisors of n. """
    return sum(proper_divisors(n))