コード例 #1
0
ファイル: Problem20.py プロジェクト: Xzeoss/projectEuler
import math
import eulerSupport as sup
# Find the sum of the digits in the number 100!

print(sup.crossSum(math.factorial(100)))
コード例 #2
0
ファイル: Problem16.py プロジェクト: Xzeoss/projectEuler
import eulerSupport as sup
# What is the sum of the digits of the number 2^1000?

print(sup.crossSum(2**1000))