freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-171-finding-numbers...

56 lines
1.3 KiB
Markdown
Raw Normal View History

---
id: 5900f4181000cf542c50ff2a
challengeType: 5
title: 'Problem 171: Finding numbers for which the sum of the squares of the digits is a square'
videoUrl: ''
localeTitle: 'Задача 171: Поиск чисел, для которых сумма квадратов цифр является квадратом'
---
## Description
<section id="description"> Для положительного целого числа n пусть f (n) - сумма квадратов цифр (в базе 10) n, например f (3) = 32 = 9, f (25) = 22 + 52 = 4 + 25 = 29, f (442) = 42 + 42 + 22 = 16 + 16 + 4 = 36 Найдите последние девять цифр суммы всех n, 0 &lt;n &lt;1020, так что f (n) - идеальный квадрат. </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler171()</code> должен вернуться 142989277.
testString: 'assert.strictEqual(euler171(), 142989277, "<code>euler171()</code> should return 142989277.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler171() {
// Good luck!
return true;
}
euler171();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>