Files
freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-320-factorials-divisible-by-a-huge-integer.english.md
Randell Dawson a7eb800450 fix(curriculum): Remove unnecessary assert message argument from English Coding Interview Prep challenges - Project Euler - 04 (#36418)
* fix: removed assert msg argument-4

* fix: remove double quotes surrounding testString code

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
2019-07-27 07:34:19 -05:00

849 B

id, challengeType, title
id challengeType title
5900f4ae1000cf542c50ffbf 5 Problem 320: Factorials divisible by a huge integer

Description

Let N(i) be the smallest integer n such that n! is divisible by (i!)1234567890

Let S(u)=∑N(i) for 10 ≤ i ≤ u.

S(1000)=614538266565663.

Find S(1 000 000) mod 1018.

Instructions

Tests

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

Challenge Seed

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

euler320();

Solution

// solution required