Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-276-primitive-triangles.russian.md

56 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4801000cf542c50ff93
challengeType: 5
title: 'Problem 276: Primitive Triangles'
videoUrl: ''
localeTitle: 'Задача 276: Примитивные треугольники'
---
## Description
<section id="description"> Рассмотрим треугольники с целыми сторонами a, b и c с ≤ b ≤ c. Целочисленный односторонний треугольник (a, b, c) называется примитивным, если gcd (a, b, c) = 1. Сколько примитивных целочисленных треугольников существует с периметром, не превышающим 10 000 000? </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler276()</code> должен вернуть 5777137137739633000.
testString: 'assert.strictEqual(euler276(), 5777137137739633000, "<code>euler276()</code> should return 5777137137739633000.");'
```
</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
```
</section>