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

713 B
Raw Blame History

id, title, challengeType, forumTopicId
id title challengeType forumTopicId
5900f3e71000cf542c50fefa Problem 123: Prime square remainders 5 301750

--description--

Let pn be the nth prime: 2, 3, 5, 7, 11, ..., and let r be the remainder when (pn1)n + (pn+1)n is divided by pn2.

For example, when n = 3, p3 = 5, and 43 + 63 = 280 ≡ 5 mod 25.

The least value of n for which the remainder first exceeds 109 is 7037.

Find the least value of n for which the remainder first exceeds 1010.

--hints--

euler123() should return 21035.

assert.strictEqual(euler123(), 21035);

--seed--

--seed-contents--

function euler123() {

  return true;
}

euler123();

--solutions--

// solution required