freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-77-prime-summations...

63 lines
855 B
Markdown

---
id: 5900f3b91000cf542c50fecc
challengeType: 5
title: 'Problem 77: Prime summations'
---
## Description
<section id='description'>
It is possible to write ten as the sum of primes in exactly five different ways:
7 + 3
5 + 5
5 + 3 + 2
3 + 3 + 2 + 2
2 + 2 + 2 + 2 + 2
What is the first value which can be written as the sum of primes in over five thousand different ways?
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler77()</code> should return 71.
testString: assert.strictEqual(euler77(), 71);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler77() {
// Good luck!
return true;
}
euler77();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>