Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-239-twenty-two-foolish-primes.md

43 lines
1005 B
Markdown
Raw Permalink Normal View History

---
id: 5900f45c1000cf542c50ff6e
title: '問題 239: 22 個の愚かな素数'
challengeType: 5
forumTopicId: 301884
dashedName: problem-239-twenty-two-foolish-primes
---
# --description--
1 から 100 までの番号が振られた 1 セットの円盤が、順不同で一列に並んでいます。
ちょうど 22 個の素数が割り振られた円盤が本来の位置とは異なる位置にあるという、間違いが起こる確率を求めなさい。 (素数でない番号の円盤も、本来の位置にあるとは限りません。)
回答は、四捨五入して小数第 12 位まで求め、0.abcdefghijkl の形式にすること。
# --hints--
`twentyTwoFoolishPrimes()``0.001887854841` を返す必要があります。
```js
assert.strictEqual(twentyTwoFoolishPrimes(), 0.001887854841);
```
# --seed--
## --seed-contents--
```js
function twentyTwoFoolishPrimes() {
return true;
}
twentyTwoFoolishPrimes();
```
# --solutions--
```js
// solution required
```