freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-263-an-engineers-dr...

56 lines
1.5 KiB
Markdown
Raw Normal View History

---
id: 5900f4741000cf542c50ff86
challengeType: 5
title: 'Problem 263: An engineers" dream come true'
videoUrl: ''
localeTitle: 问题263工程师“梦想成真
---
## Description
<section id="description">考虑数字6. 6的除数是1,2,3和6.从1到6并且包括6的每个数可以写成61 = 1,2 = 2,3 =的不同除数之和1 + 2,4 = 1 + 3,5 = 2 + 3,6 = 6。如果从1到n并且包括n的每个数可以表示为n的不同除数之和则数n被称为实数。 <p>一对差异为6的连续素数被称为性感对因为“性”是拉丁语中的“六”。第一个性感的是23,29</p><p>我们偶尔会发现一对三对,这意味着三对连续的性感素数对,这样每对的第二个成员就是下一对的第一个成员。 </p><p>我们将数字n称为n-9n-3n-3n + 3n + 3n + 9形成三对数字n-8 n-4nn + 4和n + 8都是实用的 </p><p>工程师的天堂。 </p><p>找出前四个工程师天堂的总和。 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler263()</code>应该返回2039506520。
testString: 'assert.strictEqual(euler263(), 2039506520, "<code>euler263()</code> should return 2039506520.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler263() {
// Good luck!
return true;
}
euler263();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>