freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-320-factorials-divi...

1.1 KiB

id challengeType title videoUrl localeTitle
5900f4ae1000cf542c50ffbf 5 Problem 320: Factorials divisible by a huge integer Задача 320: Факториалы, делящиеся на огромное целое число

Description

Пусть N (i) - наименьшее целое число n такое, что n! делится на (i!) 1234567890

Пусть S (u) = ΣN (i) при 10 ≤ i ≤ u.

S (1000) = 614538266565663.

Найдите S (1 000 000) мод 1018.

Instructions

Tests

tests:
  - text: <code>euler320()</code> должен вернуть 278157919195482660.
    testString: 'assert.strictEqual(euler320(), 278157919195482660, "<code>euler320()</code> should return 278157919195482660.");'

Challenge Seed

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

euler320();

Solution

// solution required