freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-231-the-prime-factorisation-of-binomial-coefficients.english.md
mrugesh 22afc2a0ca feat(learn): python certification projects (#38216)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
2020-05-27 13:19:08 +05:30

963 B
Raw Blame History

id, challengeType, isHidden, title, forumTopicId
id challengeType isHidden title forumTopicId
5900f4531000cf542c50ff66 5 false Problem 231: The prime factorisation of binomial coefficients 301875

Description

The binomial coefficient 10C3 = 120. 120 = 23 × 3 × 5 = 2 × 2 × 2 × 3 × 5, and 2 + 2 + 2 + 3 + 5 = 14. So the sum of the terms in the prime factorisation of 10C3 is 14.

Find the sum of the terms in the prime factorisation of 20000000C15000000.

Instructions

Tests

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

Challenge Seed

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

euler231();

Solution

// solution required