2020-10-06 23:10:08 +05:30

1.0 KiB
Raw Blame History

id, challengeType, videoUrl, title
id challengeType videoUrl title
5900f4ea1000cf542c50fffc 5 问题381prime-k阶乘

Description

对于素数p令Sp=Σpkmodp1≤k≤5。

例如如果p = 77-1 +7-2 +7-3 +7-4 +7-5 = 6 + 5 + 4 + 3 + 2 = 720 + 120 + 24 + 6 + 2 = 872.当872 mod7= 4时S7= 4。

对于5≤p<100可以证实ΣSp= 480。

求ΣSp为5≤p<108。

Instructions

Tests

tests:
  - text: <code>euler381()</code>应该返回139602943319822。
    testString: assert.strictEqual(euler381(), 139602943319822);

Challenge Seed

function euler381() {
  // Good luck!
  return true;
}

euler381();

Solution

// solution required

/section>