Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-127-abc-hits.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.2 KiB
Raw Blame History

id, challengeType, title, videoUrl, localeTitle
id challengeType title videoUrl localeTitle
5900f3ec1000cf542c50fefe 5 Problem 127: abc-hits 问题127abc-hits

Description

nradn的基数是n的不同素因子的乘积。例如504 = 23×32×7因此rad504= 2×3×7 = 42.如果出现以下情况我们将正整数abc的三元组定义为abc-hitGCD ab= GCDac= GCDbc= 1 a <ba + b = c radabc<c例如5,27,32是abc-hit因为GCD5,27= GCD5,32= GCD27,32= 1 5 <27 5 + 27 = 32 rad4320= 30 <32事实证明abc-hits是非常罕见的c <1000只有31次abc命中Σc= 12523。查找Σc表示c <120000。

Instructions

Tests

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

Challenge Seed

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

euler127();

Solution

// solution required

/section>