Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-266-pseudo-square-root.md

47 lines
908 B
Markdown
Raw Permalink Normal View History

---
id: 5900f4771000cf542c50ff89
title: '問題 266: 擬似平方根'
challengeType: 5
forumTopicId: 301915
dashedName: problem-266-pseudo-square-root
---
# --description--
12 の約数は 1, 2, 3, 4, 6, 12 です。
12 の平方根を超えない 12 の最大の約数は 3 です。
$n$ の平方根を超えないような整数 $n$ の最大の約数を、$n$ の「擬似平方根」 ($PSR$) と呼ぶことにします。
$PSR(3102) = 47$ であることが分かります。
$p$ を 190 未満の素数の積とします。 $PSR(p)\bmod {10}^{16} $ を求めなさい。
# --hints--
`pseudoSquareRoot()``1096883702440585` を返す必要があります。
```js
assert.strictEqual(pseudoSquareRoot(), 1096883702440585);
```
# --seed--
## --seed-contents--
```js
function pseudoSquareRoot() {
return true;
}
pseudoSquareRoot();
```
# --solutions--
```js
// solution required
```