Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com> Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
1.0 KiB
1.0 KiB
id, challengeType, isHidden, title, forumTopicId
id | challengeType | isHidden | title | forumTopicId |
---|---|---|---|---|
5900f4291000cf542c50ff3a | 5 | false | Problem 187: Semiprimes | 301823 |
Description
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?
Instructions
Tests
tests:
- text: <code>euler187()</code> should return 17427258.
testString: assert.strictEqual(euler187(), 17427258);
Challenge Seed
function euler187() {
// Good luck!
return true;
}
euler187();
Solution
// solution required