Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-131-prime-cube-partnership.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

1021 B
Raw Blame History

id, challengeType, title, videoUrl, localeTitle
id challengeType title videoUrl localeTitle
5900f3ef1000cf542c50ff02 5 Problem 131: Prime cube partnership 问题131Prime立方体伙伴关系

Description

存在一些素数值p其中存在正整数n使得表达式n3 + n2p是完美的立方体。例如当p = 19时83 + 82×19 = 123.最令人惊讶的是对于具有此属性的每个素数n的值是唯一的并且在100之下只有四个这样的素数。一百万以下的素数有多少这个非凡的财产

Instructions

Tests

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

Challenge Seed

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

euler131();

Solution

// solution required

/section>