freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-223-almost-right-angled-triangles-i.english.md
mrugesh 22afc2a0ca feat(learn): python certification projects (#38216)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
2020-05-27 13:19:08 +05:30

874 B

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

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);

Challenge Seed

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

euler223();

Solution

// solution required