freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-288-an-enormous-fac...

1.0 KiB
Raw Blame History

id challengeType videoUrl localeTitle
5900f48d1000cf542c50ff9f 5 问题288一个巨大的阶乘

Description

对于任何素数p数Npq定义为 Npq= ∑n = 0至q Tn * pn其中Tn由以下随机数生成器生成

S0 = 290797 Sn + 1 = Sn2 mod 50515093 Tn = Sn mod p

令Nfacpq为Npq的阶乘。 令NFpq为Nfacpq中因子p的数量。

给出NF3,10000mod 320 = 624955285。

求NF61,107mod 6110

Instructions

Tests

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

Challenge Seed

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

euler288();

Solution

// solution required

/section>