Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-421-prime-factors-of-n151.chinese.md
Oliver Eyton-Williams 61460c8601 fix: insert blank line after ```
search and replace ```\n< with ```\n\n< to ensure there's an empty line
before closing tags
2020-08-16 04:45:20 +05:30

1.1 KiB
Raw Blame History

id, challengeType, title, videoUrl, localeTitle
id challengeType title videoUrl localeTitle
5900f5131000cf542c510024 5 Problem 421: Prime factors of n15+1 问题421n15 +1的素因子

Description

对于n> 1的每个整数n15 +1形式的数字是合成的。 对于正整数n和m将snm定义为不超过m的n15 +1个不同素数因子的总和。

例如 215 + 1 = 3×3×11×331。 因此s2.10= 3且s2,1000= 3 + 11 + 331 = 345。

同样是1015 +1 = 7×11×13×211×241×2161×9091。 因此s10,100= 31而s10,1000= 483。 求出∑ sn108为1≤n≤1011。

Instructions

Tests

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

Challenge Seed

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

euler421();

Solution

// solution required

/section>