Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-234-semidivisible-numbers.russian.md

56 lines
1.9 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: 5900f4571000cf542c50ff69
challengeType: 5
title: 'Problem 234: Semidivisible numbers'
videoUrl: ''
localeTitle: 'Задача 234: Полуделимые числа'
---
## Description
<section id="description"> Для целого n ≥ 4 мы определяем нижний корень простого квадрата из n, обозначаемый lps (n), как наибольшее простое ≤ √n и верхний корень простого квадрата из n, ups (n), как наименьшее простое ≥ √n. Так, например, lps (4) = 2 = ups (4), lps (1000) = 31, ups (1000) = 37. Назовем целое число n ≥ 4 полуразложимым, если один из lps (n) и ups (n) делит n, но не обе. <p> Сумма полуразлагаемых чисел, не превышающих 15, равна 30, числа 8, 10 и 12. 15 не является полуразделимым, поскольку он кратен как lps (15) = 3, так и ups (15) = 5. В качестве дополнительного примера , сумма 92 полуразложимых чисел до 1000 составляет 34825. </p><p> Какова сумма всех полудивизуемых чисел, не превышающих 999966663333? </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler234()</code> должен вернуть 1259187438574927000.
testString: 'assert.strictEqual(euler234(), 1259187438574927000, "<code>euler234()</code> should return 1259187438574927000.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler234() {
// Good luck!
return true;
}
euler234();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>