freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-132-large-repunit-f...

1.2 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f3f11000cf542c50ff03 5 Problem 132: Large repunit factors Задача 132: Большие факторы репутации

Description

Число, состоящее полностью из них, называется repunit. Определим R (k) как репутацию длины k. Например, R (10) = 1111111111 = 11 × 41 × 271 × 9091, а сумма этих простых коэффициентов равна 9414. Найдите сумму первых сорока простых множителей R (109).

Instructions

Tests

tests:
  - text: <code>euler132()</code> должен возвращать 843296.
    testString: 'assert.strictEqual(euler132(), 843296, "<code>euler132()</code> should return 843296.");'

Challenge Seed

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

euler132();

Solution

// solution required