Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com> Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
1.3 KiB
1.3 KiB
id, challengeType, isHidden, title, forumTopicId
id | challengeType | isHidden | title | forumTopicId |
---|---|---|---|---|
5900f4461000cf542c50ff59 | 5 | false | Problem 218: Perfect right-angled triangles | 301860 |
Description
We will call a right angled triangle perfect if -it is a primitive right angled triangle -its hypotenuse is a perfect square
We will call a right angled triangle super-perfect if -it is a perfect right angled triangle and -its area is a multiple of the perfect numbers 6 and 28.
How many perfect right-angled triangles with c≤1016 exist that are not super-perfect?
Instructions
Tests
tests:
- text: <code>euler218()</code> should return 0.
testString: assert.strictEqual(euler218(), 0);
Challenge Seed
function euler218() {
// Good luck!
return true;
}
euler218();
Solution
// solution required