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

41 lines
650 B
Markdown
Raw Normal View History

---
id: 5900f48f1000cf542c50ffa2
title: 'Problem 291: Panaitopol Primes'
challengeType: 5
forumTopicId: 301943
dashedName: problem-291-panaitopol-primes
---
# --description--
A prime number $p$ is called a Panaitopol prime if $p = \frac{x^4 - y^4}{x^3 + y^3}$ for some positive integers $x$ and $y$.
Find how many Panaitopol primes are less than $5 × {10}^{15}$.
# --hints--
`panaitopolPrimes()` should return `4037526`.
```js
assert.strictEqual(panaitopolPrimes(), 4037526);
```
# --seed--
## --seed-contents--
```js
function panaitopolPrimes() {
return true;
}
panaitopolPrimes();
```
# --solutions--
```js
// solution required
```