Esempio n. 1
0
def solve():
    n = 1
    max = 500

    while(True):
        t = triangle(n)
        num_divisors = len(list(div_gen(t)))
    
        if num_divisors > max:
            break

        n = n + 1
    return t
Esempio n. 2
0
def isAbundant(n):
    if sum(list(div_gen(n))[:-1]) > n:
        return True
    return False
Esempio n. 3
0
def d(n):
    return sum(list(div_gen(n))[:-1]) #slice to not include number itself