41 lines
857 B
Markdown
41 lines
857 B
Markdown
![]() |
---
|
|||
|
id: 5900f48f1000cf542c50ffa2
|
|||
|
title: 'Завдання 291: Прості числа Панайтополя'
|
|||
|
challengeType: 5
|
|||
|
forumTopicId: 301943
|
|||
|
dashedName: problem-291-panaitopol-primes
|
|||
|
---
|
|||
|
|
|||
|
# --description--
|
|||
|
|
|||
|
Просте число $p$ називається простим числом Панайтополя, якщо $p = \frac{x^4 - y^4}{x^3 + y^3}$ для деяких цілих натуральних чисел $x$ and $y$.
|
|||
|
|
|||
|
Знайдіть скільки простих чисел Панайтополя є меншими, ніж $5 × {10}^{15}$.
|
|||
|
|
|||
|
# --hints--
|
|||
|
|
|||
|
`binaryCircles()` має повернути `4037526`.
|
|||
|
|
|||
|
```js
|
|||
|
assert.strictEqual(panaitopolPrimes(), 4037526);
|
|||
|
```
|
|||
|
|
|||
|
# --seed--
|
|||
|
|
|||
|
## --seed-contents--
|
|||
|
|
|||
|
```js
|
|||
|
function panaitopolPrimes() {
|
|||
|
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
panaitopolPrimes();
|
|||
|
```
|
|||
|
|
|||
|
# --solutions--
|
|||
|
|
|||
|
```js
|
|||
|
// solution required
|
|||
|
```
|