freeCodeCamp/curriculum/challenges/italian/10-coding-interview-prep/project-euler/problem-187-semiprimes.md

43 lines
831 B
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: 5900f4291000cf542c50ff3a
title: 'Problema 187 Semiprimi'
challengeType: 5
forumTopicId: 301823
dashedName: problem-187-semiprimes
---
# --description--
Un composito è un numero contenente almeno due fattori principali. Ad esempio, $15 = 3 × 5; 9 = 3 × 3; 12 = 2 × 2 × 3 $.
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.
Quanti numeri interi compositi, $n < {10}^8$, hanno precisamente due, non necessariamente distinti, fattori primi?
# --hints--
`semiPrimes()` dovrebbe restituire `17427258`.
```js
assert.strictEqual(euler187(), 17427258);
```
# --seed--
## --seed-contents--
```js
function semiPrimes() {
return true;
}
semiPrimes();
```
# --solutions--
```js
// solution required
```