freeCodeCamp/curriculum/challenges/portuguese/08-coding-interview-prep/project-euler/problem-432-totient-sum.por...

883 B
Raw Blame History

id challengeType title videoUrl localeTitle
5900f51e1000cf542c510030 5 Problem 432: Totient sum

Description

Seja S (n, m) = ∑φ (n × i) para 1 ≤ i ≤ m. (φ é a função totiente de Euler) Você recebe o S (510510,106) = 45480596821125120.

Encontre S (510510,1011). Dê os últimos 9 dígitos da sua resposta.

Instructions

Tests

tests:
  - text: ''
    testString: 'assert.strictEqual(euler432(), 754862080, "<code>euler432()</code> should return 754862080.");'

Challenge Seed

function euler432() {
  // Good luck!
  return true;
}

euler432();

Solution

// solution required