freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-211-divisor-square-...

1.1 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f43f1000cf542c50ff52 5 Problem 211: Divisor Square Sum Задача 211: Квадратная сумма дивизора

Description

Для положительного целого числа n, σ2 (n) - сумма квадратов его делителей. Например, σ2 (10) = 1 + 4 + 25 + 100 = 130. Найдите сумму всех n, 0 <n <64 000 000, так что σ2 (n) - идеальный квадрат.

Instructions

Tests

tests:
  - text: <code>euler211()</code> должен вернуть 1922364685.
    testString: 'assert.strictEqual(euler211(), 1922364685, "<code>euler211()</code> should return 1922364685.");'

Challenge Seed

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

euler211();

Solution

// solution required