56 lines
1.3 KiB
Markdown
56 lines
1.3 KiB
Markdown
|
---
|
|||
|
id: 5900f4291000cf542c50ff3a
|
|||
|
challengeType: 5
|
|||
|
title: 'Problem 187: Semiprimes'
|
|||
|
videoUrl: ''
|
|||
|
localeTitle: 'Задача 187: Полупровождения'
|
|||
|
---
|
|||
|
|
|||
|
## Description
|
|||
|
<section id="description"> Составной является число, содержащее как минимум два простых фактора. Например, 15 = 3 × 5; 9 = 3 × 3; 12 = 2 × 2 × 3. <p> Есть десять композитов ниже тридцати, содержащих ровно два, не обязательно разных основных фактора: 4, 6, 9, 10, 14, 15, 21, 22, 25, 26. </p><p> Сколько составных целых чисел, n <108, имеют ровно два, не обязательно различных первичных фактора? </p></section>
|
|||
|
|
|||
|
## Instructions
|
|||
|
<section id="instructions">
|
|||
|
</section>
|
|||
|
|
|||
|
## Tests
|
|||
|
<section id='tests'>
|
|||
|
|
|||
|
```yml
|
|||
|
tests:
|
|||
|
- text: <code>euler187()</code> должен вернуть 17427258.
|
|||
|
testString: 'assert.strictEqual(euler187(), 17427258, "<code>euler187()</code> should return 17427258.");'
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Challenge Seed
|
|||
|
<section id='challengeSeed'>
|
|||
|
|
|||
|
<div id='js-seed'>
|
|||
|
|
|||
|
```js
|
|||
|
function euler187() {
|
|||
|
// Good luck!
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
euler187();
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Solution
|
|||
|
<section id='solution'>
|
|||
|
|
|||
|
```js
|
|||
|
// solution required
|
|||
|
```
|
|||
|
</section>
|