941 B
941 B
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| 5900f3f21000cf542c50ff05 | 问题 134:素数对连接 | 5 | 301762 | problem-134-prime-pair-connection |
--description--
考虑连续的素数 p_1 = 19 和 $p_2 = 23$。 可以验证 1219 是最小的以数字 p_1 形成低位部分,而又能够被 p_2 整除的数字。
事实上,除了 p_1 = 3 和 p_2 = 5 之外,对于每对连续的素数,$p_2 > p_1$,都存在 n 的值,其最后一位数字由 p_1 组成而 n 可以被 p_2 整除。 记 S 为这种 n 中的最小值。
对连续素数对 5 ≤ p_1 ≤ 1000000 求 $\sum{S}$。
--hints--
primePairConnection() 应得 18613426663617120。
assert.strictEqual(primePairConnection(), 18613426663617120);
--seed--
--seed-contents--
function primePairConnection() {
return true;
}
primePairConnection();
--solutions--
// solution required