freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-373-circumscribed-c...

1.0 KiB

id challengeType title forumTopicId
5900f4e11000cf542c50fff4 5 Problem 373: Circumscribed Circles 302035

Description

Every triangle has a circumscribed circle that goes through the three vertices. Consider all integer sided triangles for which the radius of the circumscribed circle is integral as well.

Let S(n) be the sum of the radii of the circumscribed circles of all such triangles for which the radius does not exceed n.

S(100)=4950 and S(1200)=1653605.

Find S(107).

Instructions

Tests

tests:
  - text: <code>euler373()</code> should return 727227472448913.
    testString: assert.strictEqual(euler373(), 727227472448913);

Challenge Seed

function euler373() {
  // Good luck!
  return true;
}

euler373();

Solution

// solution required