Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-179-consecutive-positive-divisors.russian.md

1.0 KiB
Raw Blame History

id, challengeType, title, forumTopicId, localeTitle
id challengeType title forumTopicId localeTitle
5900f41f1000cf542c50ff32 5 Problem 179: Consecutive positive divisors 301814 Задача 179: последовательные положительные делители

Description

Найдите число целых чисел 1 <n <107, для которых n и n + 1 имеют одинаковое число положительных делителей. Например, 14 имеет положительные делители 1, 2, 7, 14, а 15 - 1, 3, 5, 15.

Instructions

Tests

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

Challenge Seed

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

euler179();

Solution

// solution required