mrugesh 22afc2a0ca feat(learn): python certification projects (#38216)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
2020-05-27 13:19:08 +05:30

1.1 KiB

id, challengeType, isHidden, title, forumTopicId
id challengeType isHidden title forumTopicId
5900f3b91000cf542c50fecc 5 false 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() {
  // Good luck!
  return true;
}

primeSummations();

Solution

// solution required