2021-06-15 00:49:18 -07:00
---
id: 5900f4291000cf542c50ff3a
2022-03-01 00:52:39 +05:30
title: 'Problema 187 Semiprimi'
2021-06-15 00:49:18 -07:00
challengeType: 5
forumTopicId: 301823
dashedName: problem-187-semiprimes
---
# --description--
2022-03-01 00:52:39 +05:30
Un composito è un numero contenente almeno due fattori principali. Ad esempio, $15 = 3 × 5; 9 = 3 × 3; 12 = 2 × 2 × 3 $.
2021-06-15 00:49:18 -07:00
2022-03-01 00:52:39 +05:30
Ci sono dieci numeri compositi sotto trenta che contengono esattamente due, non necessariamente distinti, fattori primi: 4, 6, 9, 10, 14, 15, 21, 22, 25, 26.
2021-06-15 00:49:18 -07:00
2022-03-01 00:52:39 +05:30
Quanti numeri interi compositi, $n < {10}^8$, hanno precisamente due, non necessariamente distinti, fattori primi?
2021-06-15 00:49:18 -07:00
# --hints--
2022-03-01 00:52:39 +05:30
`semiPrimes()` dovrebbe restituire `17427258` .
2021-06-15 00:49:18 -07:00
```js
assert.strictEqual(euler187(), 17427258);
```
# --seed--
## --seed-contents--
```js
2022-03-01 00:52:39 +05:30
function semiPrimes() {
2021-06-15 00:49:18 -07:00
return true;
}
2022-03-01 00:52:39 +05:30
semiPrimes();
2021-06-15 00:49:18 -07:00
```
# --solutions--
```js
// solution required
```