freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-97-large-non-mersen...

1.0 KiB
Raw Blame History

id challengeType videoUrl localeTitle
5900f3ce1000cf542c50fee0 5 问题97大的非梅森素数

Description

1999年发现了第一个发现超过一百万个数字的已知素数它是形式为26972593-1的梅森素数;它包含正好2,098,960位数字。随后发现其他形式为2p-1的梅森素数包含更多数字。然而在2004年发现了一个巨大的非梅森素数其中包含2,357,207个数字28433×27830457 + 1。找到此素数的最后十位数字。

Instructions

Tests

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

Challenge Seed

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

euler97();

Solution

// solution required

/section>