32 lines
1.0 KiB
Markdown
32 lines
1.0 KiB
Markdown
---
|
||
id: 5900f4741000cf542c50ff86
|
||
title: 问题263:工程师“梦想成真
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
---
|
||
|
||
# --description--
|
||
|
||
考虑数字6. 6的除数是:1,2,3和6.从1到6并且包括6的每个数可以写成6:1 = 1,2 = 2,3 =的不同除数之和1 + 2,4 = 1 + 3,5 = 2 + 3,6 = 6。如果从1到n并且包括n的每个数可以表示为n的不同除数之和,则数n被称为实数。
|
||
|
||
一对差异为6的连续素数被称为性感对(因为“性”是拉丁语中的“六”)。第一个性感的是(23,29)。
|
||
|
||
我们偶尔会发现一对三对,这意味着三对连续的性感素数对,这样每对的第二个成员就是下一对的第一个成员。
|
||
|
||
我们将数字n称为:(n-9,n-3),(n-3,n + 3),(n + 3,n + 9)形成三对,数字n-8 ,n-4,n,n + 4和n + 8都是实用的,
|
||
|
||
工程师的天堂。
|
||
|
||
找出前四个工程师天堂的总和。
|
||
|
||
# --hints--
|
||
|
||
`euler263()`应该返回2039506520。
|
||
|
||
```js
|
||
assert.strictEqual(euler263(), 2039506520);
|
||
```
|
||
|
||
# --solutions--
|
||
|