freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-407-idempotents.chi...

56 lines
987 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f5041000cf542c510016
challengeType: 5
title: 'Problem 407: Idempotents'
videoUrl: ''
localeTitle: 问题407幂等元素
---
## Description
<section id="description">如果我们计算a2 mod 6为0≤a≤5我们得到0,1,4,3,4,1。 <p> a2≡amod 6的最大值为4.让我们将Mn称为a &lt;n的最大值使得a2≡amod n。所以M6= 4。 </p><p>找ΣMn为1≤n≤107。 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler407()</code>应该返回39782849136421。
testString: 'assert.strictEqual(euler407(), 39782849136421, "<code>euler407()</code> should return 39782849136421.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler407() {
// Good luck!
return true;
}
euler407();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>