freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-221-alexandrian-int...

56 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f4491000cf542c50ff5c
challengeType: 5
title: 'Problem 221: Alexandrian Integers'
videoUrl: ''
localeTitle: 'Задача 221: александрийские целые числа'
---
## Description
<section id="description"> Будем называть положительное целое число A «александрийским целым», если существуют целые числа p, q, r такие, что: <pre> <code> A = p · q · r and 1A</code> </pre><p> знак равно </p><pre> <code> 1p</code> </pre><p> + </p><pre> <code> 1q</code> </pre><p> + </p><pre> <code> 1r</code> </pre><p> Например, 630 - это александрийское целое число (p = 5, q = -7, r = -18). На самом деле 630 является 6-м александрийским целым числом, первые 6 александрийских целых чисел: 6, 42, 120, 156, 420 и 630. </p><p> Найдите 150000 александрийское целое число. </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler221()</code> должен вернуть 1884161251122450.
testString: 'assert.strictEqual(euler221(), 1884161251122450, "<code>euler221()</code> should return 1884161251122450.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler221() {
// Good luck!
return true;
}
euler221();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>