chore(i18n,learn): processed translations (#44866)

This commit is contained in:
camperbot
2022-01-22 20:38:20 +05:30
committed by GitHub
parent d039479e66
commit 43a2a0a395
324 changed files with 2907 additions and 2916 deletions

View File

@ -1,6 +1,6 @@
---
id: 597f1e7fbc206f0e9ba95dc4
title: Factors of an integer
title: 整数の因数
challengeType: 5
forumTopicId: 302265
dashedName: factors-of-an-integer
@ -8,31 +8,31 @@ dashedName: factors-of-an-integer
# --description--
Write a function that returns the factors of a positive integer as an array.
正の整数の因数を配列として返す関数を作成します。
These factors are the positive integers by which the number being factored can be divided to yield a positive integer result.
これらの因数は正の整数であり、因数分解される数値を除算して、正の整数の結果を得ることができます。
# --hints--
`factors` should be a function.
`factors` という関数です。
```js
assert(typeof factors === 'function');
```
`factors(45)` should return `[1,3,5,9,15,45]`.
`factors(45)` `[1,3,5,9,15,45]` を返します。
```js
assert.deepEqual(factors(45), ans[0]);
```
`factors(53)` should return `[1,53]`.
`factors(53)` `[1,53]` を返します。
```js
assert.deepEqual(factors(53), ans[1]);
```
`factors(64)` should return `[1,2,4,8,16,32,64]`.
`factors(64)` `[1,2,4,8,16,32,64]` を返します。
```js
assert.deepEqual(factors(64), ans[2]);