Return the sum of the decimal digits of n! (n factorial: 1 * 2 * ... * n, with 0! = 1).
For example 10! = 3628800, and its digit sum is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27.
Example 1
Input:
factorial_digit_sum(10)
Output:
27
10! = 3628800.
Example 2
Input:
factorial_digit_sum(0)
Output:
1
0! = 1.
0 <= n <= 1000010000! has about 35,000 digits.No results yet
Run your code to check it against the examples, or submit to run every test.