Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-146-investigating-a-prime-pattern.md

792 B
Raw Permalink Blame History

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f3fe1000cf542c50ff11 问题 146素数模式的研究 5 301775 problem-146-investigating-a-prime-pattern

--description--

使得数字 $n^2 + 1$、$n^2 + 3$、$n^2 + 7$、$n^2 + 9$、n^2 + 13n^2 + 27 为连续素数的最小正整数 n 是 10。 在小于一百万的整数中,所有满足该条件的整数 n 之和为 1242490。

请求出在小于一亿五千万的整数中,所有满足该条件的整数 n 之和是多少?

--hints--

primePattern() 应该返回 676333270

assert.strictEqual(primePattern(), 676333270);

--seed--

--seed-contents--

function primePattern() {

  return true;
}

primePattern();

--solutions--

// solution required