freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-146-investigating-a...

1.2 KiB

id challengeType title forumTopicId localeTitle
5900f3fe1000cf542c50ff11 5 Problem 146: Investigating a Prime Pattern 301775 Задача 146: Исследование основного шаблона

Description

Наименьшее положительное целое число n, для которого числа n2 + 1, n2 + 3, n2 + 7, n2 + 9, n2 + 13 и n2 + 27 являются последовательными штрихами, равно 10. Сумма всех таких целых n меньше одного миллиона 1242490.

Какова сумма всех таких целых чисел n менее 150 миллионов?

Instructions

Tests

tests:
  - text: <code>euler146()</code> should return 676333270.
    testString: assert.strictEqual(euler146(), 676333270);

Challenge Seed

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

euler146();

Solution

// solution required