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

32 lines
1.0 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: 5900f4741000cf542c50ff86
title: 问题263工程师“梦想成真
challengeType: 5
videoUrl: ''
---
# --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被称为实数。
一对差异为6的连续素数被称为性感对因为“性”是拉丁语中的“六”。第一个性感的是23,29
我们偶尔会发现一对三对,这意味着三对连续的性感素数对,这样每对的第二个成员就是下一对的第一个成员。
我们将数字n称为n-9n-3n-3n + 3n + 3n + 9形成三对数字n-8 n-4nn + 4和n + 8都是实用的
工程师的天堂。
找出前四个工程师天堂的总和。
# --hints--
`euler263()`应该返回2039506520。
```js
assert.strictEqual(euler263(), 2039506520);
```
# --solutions--