---
id: 5900f4801000cf542c50ff93
challengeType: 5
title: 'Problem 276: Primitive Triangles'
forumTopicId: 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
```yml
tests:
- text: euler276() should return 5777137137739633000.
testString: assert.strictEqual(euler276(), 5777137137739633000);
```
## Challenge Seed
```js
function euler276() {
return true;
}
euler276();
```