2018-10-10 18:03:03 -04:00
---
id: 5900f4ae1000cf542c50ffbf
challengeType: 5
title: 'Problem 320: Factorials divisible by a huge integer'
2019-08-28 16:26:13 +03:00
forumTopicId: 301977
2018-10-10 18:03:03 -04:00
localeTitle: 'Задача 320: Факториалы, делящиеся на огромное целое число'
---
## Description
2019-08-28 16:26:13 +03:00
<section id='description'>
Пусть N (i) - наименьшее целое число n такое, что n! делится на (i!) 1234567890 <p> Пусть S (u) = ΣN (i) при 10 ≤ i ≤ u. </p><p> S (1000) = 614538266565663. </p><p> Найдите S (1 000 000) мод 1018. </p>
</section>
2018-10-10 18:03:03 -04:00
## Instructions
2019-08-28 16:26:13 +03:00
<section id='instructions'>
2018-10-10 18:03:03 -04:00
</section>
## Tests
<section id='tests'>
```yml
tests:
2019-08-28 16:26:13 +03:00
- text: <code>euler320()</code> should return 278157919195482660.
testString: assert.strictEqual(euler320(), 278157919195482660);
2018-10-10 18:03:03 -04:00
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler320() {
// Good luck!
return true;
}
euler320();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
2019-08-28 16:26:13 +03:00
2018-10-10 18:03:03 -04:00
</section>