Skip to content

adelphimathcs/ProjectEuler-0020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Project Euler Problem 20

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!


Adding and Contributing Solutions

First Clone the Repository

The easiest way to download the needed files is to clone the entire repository from your personal account. You will need to install Git for this.

git clone https://github.com/USERNAME/ProjectEuler-####.git
cd ProjectEuler-####

Adding New Solution

To add a new solution, just create new folder in ProjectEuler-#### and place your files there. The folder should be the name of the programming language you wrote the solution in. If that folder already exists, put your files in there. If your solution is a mathematical write up, you can write it in a README.md file or post a write-up in LaTeX. If you choose LaTeX, make sure and post the source files, and not just the PDF.

Now that you have added your solution locally, you need to push it to the main repository.

git add ./*
git commit -a -m 'message explaining what you added'
git push origin master

Contribute to Existing Solutions

While anyone has the ability to modify existing files, it is best if you use GitHub's issues to discuss the changes with the original author before making any modifications. To modify the files, you only need to clone the repository, make changes, and then push your commits as above.

About

Factorial Digit Sum

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages