diff --git a/Project Euler/Problem 20/sol2.py b/Project Euler/Problem 20/sol2.py new file mode 100644 index 000000000..bca9af9cb --- /dev/null +++ b/Project Euler/Problem 20/sol2.py @@ -0,0 +1,5 @@ +from math import factorial +def main(): + print(sum([int(x) for x in str(factorial(100))])) +if __name__ == '__main__': + main() \ No newline at end of file