Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-276-primitive-triangles.english.md
Oliver Eyton-Williams bd68b70f3d Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00

916 B

id, challengeType, title, forumTopicId
id challengeType title forumTopicId
5900f4801000cf542c50ff93 5 Problem 276: Primitive Triangles 301926

Description

Consider the triangles with integer sides a, b and c with a ≤ b ≤ c. An integer sided triangle (a,b,c) is called primitive if gcd(a,b,c)=1. How many primitive integer sided triangles exist with a perimeter not exceeding 10 000 000?

Instructions

Tests

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

Challenge Seed

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

euler276();

Solution

// solution required