2018-09-30 23:01:58 +01:00
---
id: 5900f3c51000cf542c50fed8
challengeType: 5
2020-05-21 17:31:25 +02:00
isHidden: false
2018-09-30 23:01:58 +01:00
title: 'Problem 87: Prime power triples'
2019-08-05 09:17:33 -07:00
forumTopicId: 302201
2018-09-30 23:01:58 +01:00
---
## Description
<section id='description'>
2020-02-28 21:39:47 +09:00
2018-09-30 23:01:58 +01:00
The smallest number expressible as the sum of a prime square, prime cube, and prime fourth power is 28. In fact, there are exactly four numbers below fifty that can be expressed in such a way:
2020-02-28 21:39:47 +09:00
<div style='margin-left: 4em;'>
28 = 2<sup>2</sup> + 2<sup>3</sup> + 2<sup>4</sup><br>
33 = 3<sup>2</sup> + 2<sup>3</sup> + 2<sup>4</sup><br>
49 = 5<sup>2</sup> + 2<sup>3</sup> + 2<sup>4</sup><br>
47 = 2<sup>2</sup> + 3<sup>3</sup> + 2<sup>4</sup>
</div>
2018-09-30 23:01:58 +01:00
How many numbers below fifty million can be expressed as the sum of a prime square, prime cube, and prime fourth power?
2020-02-28 21:39:47 +09:00
2018-09-30 23:01:58 +01:00
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
2018-10-04 14:37:37 +01:00
tests:
2020-02-28 21:39:47 +09:00
- text: <code>primePowerTriples()</code> should return a number.
testString: assert(typeof primePowerTriples() === 'number');
- text: <code>primePowerTriples()</code> should return 1097343.
testString: assert.strictEqual(primePowerTriples(), 1097343);
2018-09-30 23:01:58 +01:00
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
2020-02-28 21:39:47 +09:00
function primePowerTriples() {
2018-09-30 23:01:58 +01:00
// Good luck!
return true;
}
2020-02-28 21:39:47 +09:00
primePowerTriples();
2018-09-30 23:01:58 +01:00
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
2019-07-18 08:24:12 -07:00
2018-09-30 23:01:58 +01:00
</section>