Oliver Eyton-Williams 0bd52f8bd1
Feat: add new Markdown parser (#39800)
and change all the challenges to new `md` format.
2020-11-27 10:02:05 -08:00

807 B

id, title, challengeType, forumTopicId
id title challengeType forumTopicId
5900f45c1000cf542c50ff6e Problem 239: Twenty-two Foolish Primes 5 301884

--description--

A set of disks numbered 1 through 100 are placed in a line in random order.

What is the probability that we have a partial derangement such that exactly 22 prime number discs are found away from their natural positions? (Any number of non-prime disks may also be found in or out of their natural positions.)

Give your answer rounded to 12 places behind the decimal point in the form 0.abcdefghijkl.

--hints--

euler239() should return 0.001887854841.

assert.strictEqual(euler239(), 0.001887854841);

--seed--

--seed-contents--

function euler239() {

  return true;
}

euler239();

--solutions--

// solution required