Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-218-perfect-right-angled-triangles.md
Oliver Eyton-Williams ee1e8abd87 feat(curriculum): restore seed + solution to Chinese (#40683)
* 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>
2021-01-12 19:31:00 -07:00

1.0 KiB

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4461000cf542c50ff59 Problem 218: Perfect right-angled triangles 5 301860 problem-218-perfect-right-angled-triangles

--description--

Consider the right angled triangle with sides a=7, b=24 and c=25.

The area of this triangle is 84, which is divisible by the perfect numbers 6 and 28.

Moreover it is a primitive right angled triangle as gcd(a,b)=1 and gcd(b,c)=1.

Also c is a perfect square.

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?

--hints--

euler218() should return 0.

assert.strictEqual(euler218(), 0);

--seed--

--seed-contents--

function euler218() {

  return true;
}

euler218();

--solutions--

// solution required