Example #1
0
def main():
    limit = 7 * gmath.get_factorial(9)
    result = 0
    for n in range(3, limit):
        if n == sum(gmath.get_factorial(int(i)) for i in str(n)):
            result += n
    return result
Example #2
0
def main():
    return sum([int(i) for i in str(gmath.get_factorial(100))])