---
id: 5900f4c31000cf542c50ffd5
challengeType: 5
title: 'Problem 342: The totient of a square is a cube'
videoUrl: ''
localeTitle: 'Problema 342: O totiente de um quadrado é um cubo'
---

## Description
<section id="description"> Considere o número 50. 502 = 2500 = 22 × 54, então φ (2500) = 2 × 4 × 53 = 8 × 53 = 23 × 53. 1 Então, 2500 é um quadrado e φ (2500) é um cubo. <p> Encontre a soma de todos os números n, 1 &lt;n &lt;1010 de modo que φ (n2) seja um cubo. </p><p> 1 φ denota a função totiente de Euler. </p></section>

## Instructions
<section id="instructions">
</section>

## Tests
<section id='tests'>

```yml
tests:
  - text: <code>euler342()</code> deve retornar 5943040885644.
    testString: 'assert.strictEqual(euler342(), 5943040885644, "<code>euler342()</code> should return 5943040885644.");'

```

</section>

## Challenge Seed
<section id='challengeSeed'>

<div id='js-seed'>

```js
function euler342() {
  // Good luck!
  return true;
}

euler342();

```

</div>



</section>

## Solution
<section id='solution'>

```js
// solution required
```
</section>
