Files

43 lines
972 B
Markdown
Raw Permalink 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: 5900f4d01000cf542c50ffe2
title: 'Задача 355: Максимальна підмножина співвідношень'
challengeType: 5
forumTopicId: 302015
dashedName: problem-355-maximal-coprime-subset
---
# --description--
Визначте $Co(n)$ як максимально можливу суму набору взаємно простих елементів з $\\{1, 2, \ldots, n\\}$. Наприклад, $Co(10)$ становить 30 і досягає цього максимуму на підмножині $\\{1,5,7,8,9\\}$.
Вам дано, що $Co(30) = 193$ та $Co(100) = 1356$.
Знайдіть $Co(200\\,000)$.
# --hints--
`maximalCoprimeSubset()` повинен повертати `1726545007`.
```js
assert.strictEqual(maximalCoprimeSubset(), 1726545007);
```
# --seed--
## --seed-contents--
```js
function maximalCoprimeSubset() {
return true;
}
maximalCoprimeSubset();
```
# --solutions--
```js
// solution required
```