freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-365-a-huge-binomial...

922 B
Raw Blame History

id challengeType videoUrl title
5900f4da1000cf542c50ffec 5 问题365巨大的二项式系数

Description

二项式系数C1018,109是具有超过90亿9×109个数字的数字。

令Mnkm表示二项式系数Cnk模m。

计算ΣM1018,109p q r为1000 <p <q <r <5000和pqr prime。

Instructions

Tests

tests:
  - text: <code>euler365()</code>应该返回162619462356610300。
    testString: assert.strictEqual(euler365(), 162619462356610300);

Challenge Seed

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

euler365();

Solution

// solution required

/section>