818 B
818 B
id, title, challengeType, forumTopicId, dashedName
id | title | challengeType | forumTopicId | dashedName |
---|---|---|---|---|
5900f4d01000cf542c50ffe2 | Problema 355: Massimo sottoinsieme di coprimi | 5 | 302015 | problem-355-maximal-coprime-subset |
--description--
Definisci Co(n)
in modo che sia la massima somma possibile di un insieme di elementi reciprocamente co-primi da \\{1, 2, \ldots, n\\}
. Per esempio Co(10)
è di 30 e ha il suo massimo per il sottoinsieme \\{1, 5, 7, 8, 9\\}
.
Ti viene dato che Co(30) = 193
e Co(100) = 1356
.
Trova Co(200\\,000)
.
--hints--
maximalCoprimeSubset()
dovrebbe restituire 1726545007
.
assert.strictEqual(maximalCoprimeSubset(), 1726545007);
--seed--
--seed-contents--
function maximalCoprimeSubset() {
return true;
}
maximalCoprimeSubset();
--solutions--
// solution required