freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-291-panaitopol-prim...

757 B
Raw Blame History

id challengeType videoUrl title
5900f48f1000cf542c50ffa2 5 问题291Panaitopol素数

Description

如果对于某些正整数x和y素数p称为Panaitopol素数。

找出多少个Panaitopol素数小于5×1015。

Instructions

Tests

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

Challenge Seed

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

euler291();

Solution

// solution required

/section>