* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
43 lines
643 B
Markdown
43 lines
643 B
Markdown
---
|
|
id: 5900f4671000cf542c50ff79
|
|
title: 'Problem 249: Prime Subset Sums'
|
|
challengeType: 5
|
|
forumTopicId: 301896
|
|
dashedName: problem-249-prime-subset-sums
|
|
---
|
|
|
|
# --description--
|
|
|
|
Let S = {2, 3, 5, ..., 4999} be the set of prime numbers less than 5000.
|
|
|
|
Find the number of subsets of S, the sum of whose elements is a prime number.
|
|
|
|
Enter the rightmost 16 digits as your answer.
|
|
|
|
# --hints--
|
|
|
|
`euler249()` should return 9275262564250418.
|
|
|
|
```js
|
|
assert.strictEqual(euler249(), 9275262564250418);
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```js
|
|
function euler249() {
|
|
|
|
return true;
|
|
}
|
|
|
|
euler249();
|
|
```
|
|
|
|
# --solutions--
|
|
|
|
```js
|
|
// solution required
|
|
```
|