56 lines
1.0 KiB
Markdown
56 lines
1.0 KiB
Markdown
|
---
|
||
|
id: 5900f3fe1000cf542c50ff11
|
||
|
challengeType: 5
|
||
|
title: 'Problem 146: Investigating a Prime Pattern'
|
||
|
videoUrl: ''
|
||
|
localeTitle: 'Problema 146: Investigando um Padrão Prime'
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id="description"> O menor inteiro positivo n para o qual os números n2 + 1, n2 + 3, n2 + 7, n2 + 9, n2 + 13 e n2 + 27 são primos consecutivos é 10. A soma de todos esses inteiros n é inferior a um milhão é 1242490. <p> Qual é a soma de todos esses inteiros abaixo de 150 milhões? </p></section>
|
||
|
|
||
|
## Instructions
|
||
|
<section id="instructions">
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: <code>euler146()</code> deve retornar 676333270.
|
||
|
testString: 'assert.strictEqual(euler146(), 676333270, "<code>euler146()</code> should return 676333270.");'
|
||
|
|
||
|
```
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Challenge Seed
|
||
|
<section id='challengeSeed'>
|
||
|
|
||
|
<div id='js-seed'>
|
||
|
|
||
|
```js
|
||
|
function euler146() {
|
||
|
// Good luck!
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
euler146();
|
||
|
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Solution
|
||
|
<section id='solution'>
|
||
|
|
||
|
```js
|
||
|
// solution required
|
||
|
```
|
||
|
</section>
|