freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-276-primitive-trian...

988 B
Raw Blame History

id challengeType title videoUrl localeTitle
5900f4801000cf542c50ff93 5 Problem 276: Primitive Triangles 问题276原始三角形

Description

考虑具有整数边ab和c的三角形其中a≤b≤c。如果gcdabc= 1则整数边三角形abc称为基元。存在多少个原始整数边三角形周长不超过10 000 000

Instructions

Tests

tests:
  - text: <code>euler276()</code>应该返回5777137137739633000。
    testString: 'assert.strictEqual(euler276(), 5777137137739633000, "<code>euler276()</code> should return 5777137137739633000.");'

Challenge Seed

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

euler276();

Solution

// solution required