Files
freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-160-factorial-trailing-digits.english.md
Oliver Eyton-Williams f1c9b08cf3 fix(curriculum): add isHidden: false to challenges
This includes certificates (where it does nothing), but does not
include any translations.
2020-05-25 16:25:19 +05:30

886 B

id, challengeType, isHidden, title, forumTopicId
id challengeType isHidden title forumTopicId
5900f40d1000cf542c50ff1f 5 false Problem 160: Factorial trailing digits 301794

Description

For any N, let f(N) be the last five digits before the trailing zeroes in N!. For example, 9! = 362880 so f(9)=36288 10! = 3628800 so f(10)=36288 20! = 2432902008176640000 so f(20)=17664 Find f(1,000,000,000,000)

Instructions

Tests

tests:
  - text: <code>euler160()</code> should return 16576.
    testString: assert.strictEqual(euler160(), 16576);

Challenge Seed

function euler160() {
  // Good luck!
  return true;
}

euler160();

Solution

// solution required