Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-187-semiprimes.md
Oliver Eyton-Williams 0bd52f8bd1 Feat: add new Markdown parser (#39800)
and change all the challenges to new `md` format.
2020-11-27 10:02:05 -08:00

42 lines
744 B
Markdown
Raw 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: 'Problem 187: Semiprimes'
challengeType: 5
forumTopicId: 301823
---
# --description--
A composite is a number containing at least two prime factors. For example, 15 = 3 × 5; 9 = 3 × 3; 12 = 2 × 2 × 3.
There are ten composites below thirty containing precisely two, not necessarily distinct, prime factors: 4, 6, 9, 10, 14, 15, 21, 22, 25, 26.
How many composite integers, n < 108, have precisely two, not necessarily distinct, prime factors?
# --hints--
`euler187()` should return 17427258.
```js
assert.strictEqual(euler187(), 17427258);
```
# --seed--
## --seed-contents--
```js
function euler187() {
return true;
}
euler187();
```
# --solutions--
```js
// solution required
```