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

853 B

id title challengeType forumTopicId dashedName
5900f3b91000cf542c50fecc Problem 77: Prime summations 5 302190 problem-77-prime-summations

--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?

--hints--

primeSummations() should return a number.

assert(typeof primeSummations() === 'number');

primeSummations() should return 71.

assert.strictEqual(primeSummations(), 71);

--seed--

--seed-contents--

function primeSummations() {

  return true;
}

primeSummations();

--solutions--

// solution required