Ejemplo n.º 1
0
#!/usr/bin/env python
# http://projecteuler.net/index.php?section=problems&id=16
from EulerLibs import StrLibs
answer = StrLibs.sumDigits(str(2**1000))
print answer
Ejemplo n.º 2
0
#!/usr/bin/env python
# http://projecteuler.net/index.php?section=problems&id=20
import math
from EulerLibs import MathLibs,StrLibs

f100 = str(MathLibs.factorial(100))
answer = StrLibs.sumDigits(f100)
print answer