freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-249-prime-subset-su...

56 lines
913 B
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: 5900f4671000cf542c50ff79
challengeType: 5
title: 'Problem 249: Prime Subset Sums'
videoUrl: ''
localeTitle: 问题249Prime子集总和
---
## Description
<section id="description">令S = {2,3,5...4999}为小于5000的素数集。求出S的子集数其元素之和为素数。输入最右边的16位数字作为答案。 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler249()</code>应该返回9275262564250418。
testString: 'assert.strictEqual(euler249(), 9275262564250418, "<code>euler249()</code> should return 9275262564250418.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler249() {
// Good luck!
return true;
}
euler249();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>