Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-347-largest-integer-divisible-by-two-primes.russian.md

58 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4c81000cf542c50ffd9
challengeType: 5
title: 'Problem 347: Largest integer divisible by two primes'
forumTopicId: 302006
localeTitle: 'Задача 347: Наибольшее целое число, делящееся на два простых числа'
---
## Description
<section id='description'>
Наибольшее целое число ≤ 100, которое делится только на простые числа 2 и 3, равно 96, как 96 = 32 * 3 = 25 * 3. Для двух разных простых чисел p и q пусть M (p, q, N) - наибольшее положительное целое число ≤N, только делимое как p, так и q и M (p, q, N) = 0, если такого положительного целого не существует. <p> Например, M (2,3, 100) = 96. M (3,5 100) = 75, а не 90, потому что 90 делится на 2, 3 и 5. Также M (2,73,100) = 0, потому что не существует положительного целого числа ≤ 100, которое делится на 2 и 73. </p><p> Пусть S (N) - сумма всех различных M (p, q, N). S (100) = 2262. </p><p> Найдите S (10 000 000). </p>
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler347()</code> should return 11109800204052.
testString: assert.strictEqual(euler347(), 11109800204052);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler347() {
// Good luck!
return true;
}
euler347();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>