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

455 B
Raw Blame History

id, title, challengeType, videoUrl
id title challengeType videoUrl
5900f3fe1000cf542c50ff11 问题146调查素数模式 5

--description--

整数n2 + 1n2 + 3n2 + 7n2 + 9n2 + 13和n2 + 27为其连续质数的最小正整数n为10。所有小于100万的整数n的总和 是1242490。

所有小于1.5亿的整数n的总和是多少

--hints--

euler146()应该返回676333270。

assert.strictEqual(euler146(), 676333270);

--solutions--