56 lines
2.0 KiB
Markdown
56 lines
2.0 KiB
Markdown
|
---
|
||
|
id: 5900f3b41000cf542c50fec7
|
||
|
challengeType: 5
|
||
|
title: 'Problem 72: Counting fractions'
|
||
|
videoUrl: ''
|
||
|
localeTitle: 'Задача 72: Подсчет фракций'
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id="description"> Рассмотрим дробь n / d, где n и d - целые положительные числа. Если n <d 1="" 2="" 3="" 4="" 5="" 6="" 7="" 8="" 21="" and="" hcf(n,d)="1," it="" is="" called="" a="" reduced="" proper="" fraction.="" if="" we="" list="" the="" set="" of="" fractions="" for="" d="" ≤="" in="" ascending="" order="" size,="" get:="" 8,="" 7,="" 6,="" 5,="" 4,="" 3,="" 2,="" can="" be="" seen="" that="" there="" are="" elements="" this="" set.="" how="" many="" would="" contained="" 1,000,000?="" <="" section=""><h2> инструкции </h2><section id="instructions"></section><h2> тесты </h2><section id="tests"><pre> <code class="language-yml">tests: - text: <code>euler72()</code> should return 303963552391. testString: 'assert.strictEqual(euler72(), 303963552391, "<code>euler72()</code> should return 303963552391.");'</code> </pre></section><h2> Сезон испытания </h2><section id="challengeSeed"><div id="js-seed"><pre> <code class="language-js">function euler72() { // Good luck! return true; } euler72();</code> </pre></div></section><h2> Решение </h2><section id="solution"><pre> <code class="language-js">// solution required</code> </pre></section></d></section>
|
||
|
|
||
|
## Instructions
|
||
|
<section id="instructions">
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: <code>euler72()</code> должен возвращать 303963552391.
|
||
|
testString: 'assert.strictEqual(euler72(), 303963552391, "<code>euler72()</code> should return 303963552391.");'
|
||
|
|
||
|
```
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Challenge Seed
|
||
|
<section id='challengeSeed'>
|
||
|
|
||
|
<div id='js-seed'>
|
||
|
|
||
|
```js
|
||
|
function euler72() {
|
||
|
// Good luck!
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
euler72();
|
||
|
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Solution
|
||
|
<section id='solution'>
|
||
|
|
||
|
```js
|
||
|
// solution required
|
||
|
```
|
||
|
</section>
|