* 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>
45 lines
699 B
Markdown
45 lines
699 B
Markdown
---
|
|
id: 5900f4671000cf542c50ff7a
|
|
title: 'Problem 251: Cardano Triplets'
|
|
challengeType: 5
|
|
forumTopicId: 301899
|
|
dashedName: problem-251-cardano-triplets
|
|
---
|
|
|
|
# --description--
|
|
|
|
A triplet of positive integers (a,b,c) is called a Cardano Triplet if it satisfies the condition:
|
|
|
|
For example, (2,1,5) is a Cardano Triplet.
|
|
|
|
There exist 149 Cardano Triplets for which a+b+c ≤ 1000.
|
|
|
|
Find how many Cardano Triplets exist such that a+b+c ≤ 110,000,000.
|
|
|
|
# --hints--
|
|
|
|
`euler251()` should return 18946051.
|
|
|
|
```js
|
|
assert.strictEqual(euler251(), 18946051);
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```js
|
|
function euler251() {
|
|
|
|
return true;
|
|
}
|
|
|
|
euler251();
|
|
```
|
|
|
|
# --solutions--
|
|
|
|
```js
|
|
// solution required
|
|
```
|