56 lines
1.1 KiB
Markdown
56 lines
1.1 KiB
Markdown
---
|
||
id: 5900f4671000cf542c50ff79
|
||
challengeType: 5
|
||
title: 'Problem 249: Prime Subset Sums'
|
||
videoUrl: ''
|
||
localeTitle: 'Задача 249: Суммы для первичного подмножества'
|
||
---
|
||
|
||
## 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>
|