Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-291-panaitopol-primes.md
2022-01-23 00:08:20 +09:00

707 B
Raw Permalink Blame History

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f48f1000cf542c50ffa2 問題 291: Panaitopol 素数 5 301943 problem-291-panaitopol-primes

--description--

正の整数 xy に対して素数 p = \frac{x^4 - y^4}{x^3 + y^3} が成り立つとき、p は Panaitopol 素数と呼ばれます。

5 × {10}^{15} 未満の Panaitopol 素数はいくつありますか。

--hints--

panaitopolPrimes()4037526 を返す必要があります。

assert.strictEqual(panaitopolPrimes(), 4037526);

--seed--

--seed-contents--

function panaitopolPrimes() {

  return true;
}

panaitopolPrimes();

--solutions--

// solution required