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

1.1 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f4531000cf542c50ff66 5 Problem 231: The prime factorisation of binomial coefficients Problema 231: A fatoração primária dos coeficientes binomiais

Description

O coeficiente binomial 10C3 = 120. 120 = 23 × 3 × 5 = 2 × 2 × 2 × 3 × 5, e 2 + 2 + 2 + 3 + 5 = 14. Portanto, a soma dos termos na fatoração primária de 10C3 é 14.

Encontre a soma dos termos na fatoração primária de 20000000C15000000.

Instructions

Tests

tests:
  - text: <code>euler231()</code> deve retornar 7526965179680.
    testString: 'assert.strictEqual(euler231(), 7526965179680, "<code>euler231()</code> should return 7526965179680.");'

Challenge Seed

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

euler231();

Solution

// solution required