Files
freeCodeCamp/curriculum/challenges/ukrainian/10-coding-interview-prep/project-euler/problem-146-investigating-a-prime-pattern.md

41 lines
972 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f3fe1000cf542c50ff11
title: 'Завдання 146: дослідження моделі простих чисел'
challengeType: 5
forumTopicId: 301775
dashedName: problem-146-investigating-a-prime-pattern
---
# --description--
Найменше натуральне число $n$ для якого числа $n^2 + 1$, $n^2 + 3$, $n^2 + 7$, $n^2 + 9$, $n^2 + 13$ і $n^2 + 27$ є послідовними простими числами - 10. Сума усіх таких цілих чисел $n$ менших за один мільйон становить 1242490.
Яка сума усіх таких цілих чисел $n$ менших за 150 мільйонів?
# --hints--
`primePattern()` має повернути `676333270`.
```js
assert.strictEqual(primePattern(), 676333270);
```
# --seed--
## --seed-contents--
```js
function primePattern() {
return true;
}
primePattern();
```
# --solutions--
```js
// solution required
```