Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-357-prime-generating-integers.md
gikf c18554dd44 fix(curriculum): clean-up Project Euler 341-360 (#42998)
* fix: clean-up Project Euler 341-360

* fix: improve wording

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>

* fix: corrections from review

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-07-29 19:14:22 +02:00

794 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4d11000cf542c50ffe4 Problem 357: Prime generating integers 5 302017 problem-357-prime-generating-integers

--description--

Consider the divisors of 30: 1, 2, 3, 5, 6, 10, 15, 30.

It can be seen that for every divisor d of 30, d + \frac{30}{d} is prime.

Find the sum of all positive integers n not exceeding 100\\,000\\,000 such that for every divisor d of n, d + \frac{n}{d} is prime.

--hints--

primeGeneratingIntegers() should return 1739023853137.

assert.strictEqual(primeGeneratingIntegers(), 1739023853137);

--seed--

--seed-contents--

function primeGeneratingIntegers() {

  return true;
}

primeGeneratingIntegers();

--solutions--

// solution required