Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-266-pseudo-square-root.md
2022-01-23 00:08:20 +09:00

908 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4771000cf542c50ff89 問題 266: 擬似平方根 5 301915 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 を返す必要があります。

assert.strictEqual(pseudoSquareRoot(), 1096883702440585);

--seed--

--seed-contents--

function pseudoSquareRoot() {

  return true;
}

pseudoSquareRoot();

--solutions--

// solution required