Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-304-primonacci.chinese.md
Oliver Eyton-Williams 61460c8601 fix: insert blank line after ```
search and replace ```\n< with ```\n\n< to ensure there's an empty line
before closing tags
2020-08-16 04:45:20 +05:30

74 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f49d1000cf542c50ffaf
challengeType: 5
title: 'Problem 304: Primonacci'
videoUrl: ''
localeTitle: 问题304Primonacci
---
## Description
<section id="description">
对于任何正整数n函数next_primen返回最小质数p使得p> n。
序列an定义为
对于n> 1a1= next_prime1014和an= next_primean-1
斐波那契数列fn定义为
对于n> 1f0= 0f1= 1和fn= fn-1+ fn-2
序列bn定义为fan
求出∑bn为1≤n≤100000。
给出答案mod 1234567891011。
</section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler304()</code>应该返回283988410192。
testString: assert.strictEqual(euler304(), 283988410192);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler304() {
// Good luck!
return true;
}
euler304();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>