76 lines
1.3 KiB
Markdown
76 lines
1.3 KiB
Markdown
---
|
||
id: 5900f49b1000cf542c50ffad
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
title: 问题302:强阿喀琉斯数
|
||
---
|
||
|
||
## Description
|
||
<section id="description">
|
||
如果p2是n中每个素数p的n的因数,则正整数n是有力的。
|
||
|
||
|
||
如果n可以表示为另一个正整数的幂,则正整数n是理想幂。
|
||
|
||
|
||
如果n是强大的,但不是完美的幂,则正整数n是阿喀琉斯数。 例如,864和1800是阿喀琉斯数字:864 = 25·33和1800 = 23·32·52。
|
||
|
||
|
||
如果S和φ(S)都是阿喀琉斯数,我们将正整数S称为强阿喀琉斯数.1
|
||
例如,864是强致命弱点数:φ(864)= 288 = 25·32。 但是,1800不是强阿喀琉斯数字,因为:(1800)= 480 = 25·31·51。
|
||
|
||
低于104的有7个强弱点和低于108的656。
|
||
|
||
|
||
1018以下有多少个强阿喀琉斯数字?
|
||
|
||
|
||
1φ表示欧拉的拉伸函数。
|
||
</section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>euler302()</code>应该返回1170060。
|
||
testString: assert.strictEqual(euler302(), 1170060);
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler302() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler302();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
|
||
/section>
|