freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-127-abc-hits.chines...

56 lines
1.2 KiB
Markdown
Raw Normal View History

---
id: 5900f3ec1000cf542c50fefe
challengeType: 5
title: 'Problem 127: abc-hits'
videoUrl: ''
localeTitle: 问题127abc-hits
---
## Description
<section id="description"> nradn的基数是n的不同素因子的乘积。例如504 = 23×32×7因此rad504= 2×3×7 = 42.如果出现以下情况我们将正整数abc的三元组定义为abc-hitGCD ab= GCDac= GCDbc= 1 a &lt;ba + b = c radabc&lt;c例如5,27,32是abc-hit因为GCD5,27= GCD5,32= GCD27,32= 1 5 &lt;27 5 + 27 = 32 rad4320= 30 &lt;32事实证明abc-hits是非常罕见的c &lt;1000只有31次abc命中Σc= 12523。查找Σc表示c &lt;120000。 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler127()</code>应该返回18407904。
testString: 'assert.strictEqual(euler127(), 18407904, "<code>euler127()</code> should return 18407904.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler127() {
// Good luck!
return true;
}
euler127();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>