2019-07-16 04:11:49 +02:00
|
|
|
from lib_misc import factorial
|
|
|
|
|
|
|
|
|
2019-07-15 05:58:22 +02:00
|
|
|
def euler_020():
|
2019-07-16 04:11:49 +02:00
|
|
|
f_100 = factorial(100)
|
|
|
|
return sum(map(int, str(f_100)))
|
2019-07-15 05:58:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2019-07-16 04:11:49 +02:00
|
|
|
assert(euler_020() == 648)
|
2019-07-15 05:58:22 +02:00
|
|
|
print("e020.py: {}".format(euler_020()))
|