Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-168-number-rotations.russian.md

58 lines
1.3 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: 5900f4151000cf542c50ff27
challengeType: 5
title: 'Problem 168: Number Rotations'
forumTopicId: 301802
localeTitle: 'Проблема 168: Число оборотов'
---
## Description
<section id='description'>
Рассмотрим число 142857. Мы можем повернуть это число с помощью правого поворота, переместив последнюю цифру (7) в начало, давая нам 714285. Можно проверить, что 714285 = 5 × 142857. Это демонстрирует необычное свойство 142857: оно является делителем его правого вращения. Найдите последние 5 цифр суммы всех целых чисел n, 10 &lt;n &lt;10100, которые имеют это свойство.
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler168()</code> should return 59206.
testString: assert.strictEqual(euler168(), 59206);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler168() {
// Good luck!
return true;
}
euler168();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>