68 lines
916 B
Markdown
68 lines
916 B
Markdown
|
---
|
||
|
id: 5900f4671000cf542c50ff7a
|
||
|
challengeType: 5
|
||
|
title: 'Problem 251: Cardano Triplets'
|
||
|
forumTopicId: 301899
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id='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.
|
||
|
</section>
|
||
|
|
||
|
## Instructions
|
||
|
<section id='instructions'>
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: <code>euler251()</code> should return 18946051.
|
||
|
testString: assert.strictEqual(euler251(), 18946051);
|
||
|
|
||
|
```
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Challenge Seed
|
||
|
<section id='challengeSeed'>
|
||
|
|
||
|
<div id='js-seed'>
|
||
|
|
||
|
```js
|
||
|
function euler251() {
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
euler251();
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Solution
|
||
|
<section id='solution'>
|
||
|
|
||
|
```js
|
||
|
// solution required
|
||
|
```
|
||
|
|
||
|
</section>
|