freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-231-the-prime-facto...

1.2 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f4531000cf542c50ff66 5 Problem 231: The prime factorisation of binomial coefficients Задача 231: простая факторизация биномиальных коэффициентов

Description

Биномиальный коэффициент 10C3 = 120. 120 = 23 × 3 × 5 = 2 × 2 × 2 × 3 × 5 и 2 + 2 + 2 + 3 + 5 = 14. Таким образом, сумма членов простой факторизации 10C3 составляет 14.

Найдите сумму членов в простой факторизации 20000000C15000000.

Instructions

Tests

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

Challenge Seed

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

euler231();

Solution

// solution required