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

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: 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>