mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-10 01:01:16 -04:00
773 B
773 B
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| 5900f4d01000cf542c50ffe2 | Problem 355: Maximal coprime subset | 1 | 302015 | problem-355-maximal-coprime-subset |
--description--
Define Co(n) to be the maximal possible sum of a set of mutually co-prime elements from \\{1, 2, \ldots, n\\}. For example Co(10) is 30 and hits that maximum on the subset \\{1, 5, 7, 8, 9\\}.
You are given that Co(30) = 193 and Co(100) = 1356.
Find Co(200\\,000).
--hints--
maximalCoprimeSubset() should return 1726545007.
assert.strictEqual(maximalCoprimeSubset(), 1726545007);
--seed--
--seed-contents--
function maximalCoprimeSubset() {
return true;
}
maximalCoprimeSubset();
--solutions--
// solution required