Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-370-geometric-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

828 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4de1000cf542c50fff1 Problem 370: Geometric triangles 5 302032 problem-370-geometric-triangles

--description--

Let us define a geometric triangle as an integer sided triangle with sides a ≤ b ≤ c so that its sides form a geometric progression, i.e. b2 = a · c .

An example of such a geometric triangle is the triangle with sides a = 144, b = 156 and c = 169.

There are 861805 geometric triangles with perimeter ≤ 106 .

How many geometric triangles exist with perimeter ≤ 2.5·1013 ?

--hints--

euler370() should return 41791929448408.

assert.strictEqual(euler370(), 41791929448408);

--seed--

--seed-contents--

function euler370() {

  return true;
}

euler370();

--solutions--

// solution required