Files

43 lines
1.0 KiB
Markdown
Raw Permalink 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: 5900f4291000cf542c50ff3a
title: 'Завдання 187: Напівпрості числа'
challengeType: 5
forumTopicId: 301823
dashedName: problem-187-semiprimes
---
# --description--
Складене число - число, яке складається зі щонайменше двох простих множників. Наприклад, $15 = 3 × 5; 9 = 3 × 3; 12 = 2 × 2 × 3$.
Є десять складених чисел менших від тридцяти, що містять саме два, не обов'язково різні, прості множники: 4, 6, 9, 10, 14, 15, 21, 22, 25, 26.
Скільки складених чисел $n < {10}^8$ мають саме два, не обов'язково різні, прості множники?
# --hints--
`semiPrimes()` має повернути `17427258`.
```js
assert.strictEqual(euler187(), 17427258);
```
# --seed--
## --seed-contents--
```js
function semiPrimes() {
return true;
}
semiPrimes();
```
# --solutions--
```js
// solution required
```