Brute force
As always, problems involving large numbers are easy to solve in Python, just compute the number and iterate on it as a string:
From solution1.py:
def factorial_digit_sum(n=100):
return sum(int(x) for x in str(factorial(n)))
As always, problems involving large numbers are easy to solve in Python, just compute the number and iterate on it as a string:
From solution1.py:
def factorial_digit_sum(n=100):
return sum(int(x) for x in str(factorial(n)))