Back to Cosmos

Project Euler Problem 20: Factorial digit sum

code/online_challenges/src/project_euler/problem_020/README.md

latest478 B
Original Source

Project Euler Problem 20: Factorial digit sum

(Problem Link)

n! means n × (n − 1) × ... × 3 × 2 × 1

For example, 10! = 10 × 9 × ... × 3 × 2 × 1 = 3628800, and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27.

Find the sum of the digits in the number 100!


<p align="center"> A massive collaborative effort by <a href="https://github.com/OpenGenus/cosmos">OpenGenus Foundation</a> </p>