1.1 KiB

id, challengeType, title, forumTopicId
id challengeType title forumTopicId
5900f3b91000cf542c50fecc 5 Problem 77: Prime summations 302190

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?

Instructions

Tests

tests:
  - text: <code>primeSummations()</code> should return a number.
    testString: assert(typeof primeSummations() === 'number');
  - text: <code>primeSummations()</code> should return 71.
    testString: assert.strictEqual(primeSummations(), 71);

Challenge Seed

function primeSummations() {

  return true;
}

primeSummations();

Solution

// solution required