41 lines
780 B
Markdown
41 lines
780 B
Markdown
![]() |
---
|
||
|
id: 5900f42f1000cf542c50ff41
|
||
|
title: '問題 193: 無平方数'
|
||
|
challengeType: 5
|
||
|
forumTopicId: 301831
|
||
|
dashedName: problem-193-squarefree-numbers
|
||
|
---
|
||
|
|
||
|
# --description--
|
||
|
|
||
|
正の整数 $n$ がいずれの素数の 2 乗でも割り切れないとき、$n$ は無平方数と呼ばれます。したがって、1, 2, 3, 5, 6, 7, 10, 11 は無平方数ですが、4, 8, 9, 12 は違います。
|
||
|
|
||
|
$2^{50} 未満の無平方数はいくつありますか。
|
||
|
|
||
|
# --hints--
|
||
|
|
||
|
`squarefreeNumbers()` は `684465067343069` を返す必要があります。
|
||
|
|
||
|
```js
|
||
|
assert.strictEqual(squarefreeNumbers(), 684465067343069);
|
||
|
```
|
||
|
|
||
|
# --seed--
|
||
|
|
||
|
## --seed-contents--
|
||
|
|
||
|
```js
|
||
|
function squarefreeNumbers() {
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
squarefreeNumbers();
|
||
|
```
|
||
|
|
||
|
# --solutions--
|
||
|
|
||
|
```js
|
||
|
// solution required
|
||
|
```
|