freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-134-prime-pair-conn...

56 lines
1.1 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: 5900f3f21000cf542c50ff05
challengeType: 5
title: 'Problem 134: Prime pair connection'
videoUrl: ''
localeTitle: 问题134素对对连接
---
## Description
<section id="description">考虑连续的素数p1 = 19和p2 = 23.可以证实1219是最小的数字使得最后的数字由p1形成同时也可以被p2整除。实际上除了p1 = 3和p2 = 5之外对于每对连续质数p2&gt; p1存在n的值其中最后的数字由p1形成n可以被p2整除。设S是n的这些值中最小的。找到每对连续质数的ΣS其中5≤p1≤1000000。 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler134()</code>应该返回18613426663617120。
testString: 'assert.strictEqual(euler134(), 18613426663617120, "<code>euler134()</code> should return 18613426663617120.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler134() {
// Good luck!
return true;
}
euler134();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>