2018-10-10 18:03:03 -04:00
---
id: 5900f4801000cf542c50ff93
challengeType: 5
title: 'Problem 276: Primitive Triangles'
2019-08-28 16:26:13 +03:00
forumTopicId: 301926
2018-10-10 18:03:03 -04:00
localeTitle: 'Задача 276: Примитивные треугольники'
---
## Description
2019-08-28 16:26:13 +03:00
<section id='description'>
Рассмотрим треугольники с целыми сторонами a, b и c с ≤ b ≤ c. Целочисленный односторонний треугольник (a, b, c) называется примитивным, если gcd (a, b, c) = 1. Сколько примитивных целочисленных треугольников существует с периметром, не превышающим 10 000 000?
</section>
2018-10-10 18:03:03 -04:00
## Instructions
2019-08-28 16:26:13 +03:00
<section id='instructions'>
2018-10-10 18:03:03 -04:00
</section>
## Tests
<section id='tests'>
```yml
tests:
2019-08-28 16:26:13 +03:00
- text: <code>euler276()</code> should return 5777137137739633000.
testString: assert.strictEqual(euler276(), 5777137137739633000);
2018-10-10 18:03:03 -04:00
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler276() {
// Good luck!
return true;
}
euler276();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
2019-08-28 16:26:13 +03:00
2018-10-10 18:03:03 -04:00
</section>