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

41 lines
707 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f48f1000cf542c50ffa2
title: '問題 291: Panaitopol 素数'
challengeType: 5
forumTopicId: 301943
dashedName: problem-291-panaitopol-primes
---
# --description--
正の整数 $x$ と $y$ に対して素数 $p = \frac{x^4 - y^4}{x^3 + y^3}$ が成り立つとき、$p$ は Panaitopol 素数と呼ばれます。
$5 × {10}^{15}$ 未満の Panaitopol 素数はいくつありますか。
# --hints--
`panaitopolPrimes()``4037526` を返す必要があります。
```js
assert.strictEqual(panaitopolPrimes(), 4037526);
```
# --seed--
## --seed-contents--
```js
function panaitopolPrimes() {
return true;
}
panaitopolPrimes();
```
# --solutions--
```js
// solution required
```