freeCodeCamp/curriculum/challenges/italian/10-coding-interview-prep/project-euler/problem-432-totient-sum.md

43 lines
686 B
Markdown
Raw Normal View History

---
id: 5900f51e1000cf542c510030
title: 'Problema 432: Somma di tozienti'
challengeType: 1
forumTopicId: 302103
dashedName: problem-432-totient-sum
---
# --description--
Sia $S(n, m) = \sum φ(n × i)$ per $1 ≤ i ≤ m$. ($φ$ è la funzione toziente di Eulero)
Ti è dato che $S(510\\,510, {10}^6) = 45\\,480\\,596\\,821\\,125\\,120$.
Trova $S(510\\,510, {10}^{11})$. Dai le ultime 9 cifre della tua risposta.
# --hints--
`totientSum()` dovrebbe restituire `754862080`.
```js
assert.strictEqual(totientSum(), 754862080);
```
# --seed--
## --seed-contents--
```js
function totientSum() {
return true;
}
totientSum();
```
# --solutions--
```js
// solution required
```