Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-239-twenty-two-foolish-primes.russian.md

56 lines
1.5 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: 5900f45c1000cf542c50ff6e
challengeType: 5
title: 'Problem 239: Twenty-two Foolish Primes'
videoUrl: ''
localeTitle: 'Задача 239: Двадцать два глупых'
---
## Description
<section id="description"> Набор дисков с номерами от 1 до 100 помещается в строку в случайном порядке. <p> Какова вероятность того, что у нас есть частичное нарушение, так что ровно 22 числа простых чисел находятся вне их естественных позиций? (Любое количество несжатых дисков также может быть найдено в их естественных положениях или из них.) </p><p> Дайте ваш ответ округленным до 12 мест за десятичной точкой в ​​форме 0.abcdefghijkl. </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler239()</code> должен возвращать значение 0.001887854841.
testString: 'assert.strictEqual(euler239(), 0.001887854841, "<code>euler239()</code> should return 0.001887854841.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler239() {
// Good luck!
return true;
}
euler239();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>