Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-132-large-repunit-factors.md

43 lines
730 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f3f11000cf542c50ff03
title: '问题 132大纯元数因子'
challengeType: 5
forumTopicId: 301760
dashedName: problem-132-large-repunit-factors
---
# --description--
完全由 1 组成的数字称为纯元数repunit。 我们定义 $R(k)$ 为长度 $k$ 的纯元数。
例如 $R(10) = 1111111111 = 11 × 41 × 271 × 9091$,则其素数因子的和为 9414。
求 $R({10}^9)$ 的前 40 个素数因子的和。
# --hints--
`largeRepunitFactors()` 应该返回 `843296`
```js
assert.strictEqual(largeRepunitFactors(), 843296);
```
# --seed--
## --seed-contents--
```js
function largeRepunitFactors() {
return true;
}
largeRepunitFactors();
```
# --solutions--
```js
// solution required
```