freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-425-prime-connectio...

75 lines
1.3 KiB
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: 5900f5151000cf542c510028
challengeType: 5
videoUrl: ''
title: 问题425主要连接
---
## Description
<section id="description">
如果满足以下条件之一则称两个正数A和B被连接用“ A↔B”表示
1A和B的长度相同且仅相差一位数 例如123↔173。
2在A或B的左边加一位使B或A成为数字 例如23↔223和123↔23。
如果在2和P之间存在连接的素数链并且链中没有素数超过P则我们称素数为P a 2的相对数。
例如127是2的亲戚。 可能的链之一如下所示:
2分3分13分113分103分107分127
但是11和103不是2的亲戚。
令FN为素数≤N的和它们不是2的相对数。
我们可以验证F103= 431和F104= 78728。
找出F107
</section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler425()</code>应该返回46479497324。
testString: assert.strictEqual(euler425(), 46479497324);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler425() {
// Good luck!
return true;
}
euler425();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>