chore(learn): Applied MDX format to Chinese curriculum files (#40462)
This commit is contained in:
@ -1,55 +1,29 @@
|
||||
---
|
||||
id: 5900f4421000cf542c50ff55
|
||||
title: 问题214个欧拉链
|
||||
challengeType: 5
|
||||
videoUrl: ''
|
||||
title: 问题214个欧拉链
|
||||
---
|
||||
|
||||
## Description
|
||||
<section id="description">设φ是欧拉的函数,即对于自然数n,φ(n)是k的数,1≤k≤n,gcd(k,n)= 1。 <p>通过迭代φ,每个正整数产生以1结尾的数字递减的链。例如,如果我们从5开始,则生成序列5,4,2,1。以下列出了长度为4的所有链条: </p><p> 5,4,2,1 7,6,2,1 8,4,2,1 9,6,2,1 10,4,2,1 12,4,2,1 14,6,2,1 18 ,6,2,1 </p><p>这些链中只有两个以素数开头,它们的总和为12。 </p><p>所有小于40000000的素数的总和是多少,它产生一个长度为25的链? </p></section>
|
||||
# --description--
|
||||
|
||||
## Instructions
|
||||
<section id="instructions">
|
||||
</section>
|
||||
设φ是欧拉的函数,即对于自然数n,φ(n)是k的数,1≤k≤n,gcd(k,n)= 1。
|
||||
|
||||
## Tests
|
||||
<section id='tests'>
|
||||
通过迭代φ,每个正整数产生以1结尾的数字递减的链。例如,如果我们从5开始,则生成序列5,4,2,1。以下列出了长度为4的所有链条:
|
||||
|
||||
```yml
|
||||
tests:
|
||||
- text: <code>euler214()</code>应该返回1677366278943。
|
||||
testString: assert.strictEqual(euler214(), 1677366278943);
|
||||
5,4,2,1 7,6,2,1 8,4,2,1 9,6,2,1 10,4,2,1 12,4,2,1 14,6,2,1 18 ,6,2,1
|
||||
|
||||
```
|
||||
这些链中只有两个以素数开头,它们的总和为12。
|
||||
|
||||
</section>
|
||||
所有小于40000000的素数的总和是多少,它产生一个长度为25的链?
|
||||
|
||||
## Challenge Seed
|
||||
<section id='challengeSeed'>
|
||||
# --hints--
|
||||
|
||||
<div id='js-seed'>
|
||||
`euler214()`应该返回1677366278943。
|
||||
|
||||
```js
|
||||
function euler214() {
|
||||
// Good luck!
|
||||
return true;
|
||||
}
|
||||
|
||||
euler214();
|
||||
|
||||
assert.strictEqual(euler214(), 1677366278943);
|
||||
```
|
||||
|
||||
</div>
|
||||
# --solutions--
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
## Solution
|
||||
<section id='solution'>
|
||||
|
||||
```js
|
||||
// solution required
|
||||
```
|
||||
|
||||
/section>
|
||||
|
Reference in New Issue
Block a user