コード例 #1
0
ファイル: problems.py プロジェクト: movery/Project-Euler
def pe020():
    """# Find the digit-sum of '100!'"""
    from tools import factorial, digitSum

    return digitSum(factorial(100))
コード例 #2
0
ファイル: problems.py プロジェクト: movery/Project-Euler
def pe016():
    """Find the sum of the digits of the number 2^1000"""
    
    from tools import digitSum

    return digitSum(2**1000)