freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-223-almost-right-angled-triangles-i.english.md
Valeriy 79d9012432 fix(curriculum): quotes in tests (#18828)
* fix(curriculum): tests quotes

* fix(curriculum): fill seed-teardown

* fix(curriculum): fix tests and remove unneeded seed-teardown
2018-10-20 23:32:47 +05:30

887 B

id, challengeType, title
id challengeType title
5900f44b1000cf542c50ff5e 5 Problem 223: Almost right-angled triangles I

Description

Let us call an integer sided triangle with sides a ≤ b ≤ c barely acute if the sides satisfy a2 + b2 = c2 + 1.

How many barely acute triangles are there with perimeter ≤ 25,000,000?

Instructions

Tests

tests:
  - text: <code>euler223()</code> should return 61614848.
    testString: assert.strictEqual(euler223(), 61614848, '<code>euler223()</code> should return 61614848.');

Challenge Seed

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

euler223();

Solution

// solution required