Back to Freecodecamp

Problem 224: Almost right-angled triangles II

curriculum/challenges/english/blocks/project-euler-problems-201-to-300/5900f44e1000cf542c50ff5f.md

latest557 B
Original Source

--description--

Let us call an integer sided triangle with sides $a ≤ b ≤ c$ barely obtuse if the sides satisfy $a^2 + b^2 = c^2 - 1$.

How many barely obtuse triangles are there with perimeter $≤ 75\,000\,000$?

--hints--

almostRightAngledTrianglesTwo() should return 4137330.

js
assert.strictEqual(almostRightAngledTrianglesTwo(), 4137330);

--seed--

--seed-contents--

js
function almostRightAngledTrianglesTwo() {

  return true;
}

almostRightAngledTrianglesTwo();

--solutions--

js
// solution required