freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-279-triangles-with-...

39 lines
752 B
Markdown
Raw Normal View History

---
id: 5900f4841000cf542c50ff96
title: 'Problem 279: Triangles with integral sides and an integral angle'
challengeType: 5
forumTopicId: 301929
dashedName: problem-279-triangles-with-integral-sides-and-an-integral-angle
---
# --description--
How many triangles are there with integral sides, at least one integral angle (measured in degrees), and a perimeter that does not exceed ${10}^8$?
# --hints--
`trianglesWithIntegralSidesAndAngle()` should return `416577688`.
```js
assert.strictEqual(trianglesWithIntegralSidesAndAngle(), 416577688);
```
# --seed--
## --seed-contents--
```js
function trianglesWithIntegralSidesAndAngle() {
return true;
}
trianglesWithIntegralSidesAndAngle();
```
# --solutions--
```js
// solution required
```