freeCodeCamp/curriculum/challenges/portuguese/08-coding-interview-prep/project-euler/problem-457-a-polynomial-mo...

56 lines
1.1 KiB
Markdown
Raw Normal View History

---
id: 5900f5361000cf542c510048
challengeType: 5
title: 'Problem 457: A polynomial modulo the square of a prime'
videoUrl: ''
localeTitle: 'Problema 457: Um módulo polinomial o quadrado de um primo'
---
## Description
<section id="description"> Seja f (n) = n2 - 3n - 1. Seja p um primo. Seja R (p) o menor inteiro positivo n tal que f (n) mod p2 = 0 se tal inteiro n existir, caso contrário, R (p) = 0. <p> Seja SR (L) ∑R (p) para todos os primos que não excedam L. </p><p> Encontre SR (107). </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler457()</code> deve retornar 2647787126797397000.
testString: 'assert.strictEqual(euler457(), 2647787126797397000, "<code>euler457()</code> should return 2647787126797397000.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler457() {
// Good luck!
return true;
}
euler457();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>