* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
39 lines
653 B
Markdown
39 lines
653 B
Markdown
---
|
||
id: 5900f4801000cf542c50ff93
|
||
title: 问题276:原始三角形
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-276-primitive-triangles
|
||
---
|
||
|
||
# --description--
|
||
|
||
考虑具有整数边a,b和c的三角形,其中a≤b≤c。如果gcd(a,b,c)= 1,则整数边三角形(a,b,c)称为基元。存在多少个原始整数边三角形,周长不超过10 000 000?
|
||
|
||
# --hints--
|
||
|
||
`euler276()`应该返回5777137137739633000。
|
||
|
||
```js
|
||
assert.strictEqual(euler276(), 5777137137739633000);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function euler276() {
|
||
|
||
return true;
|
||
}
|
||
|
||
euler276();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|