chore(i18n,curriculum): update translations (#43073)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f36f1000cf542c50fe82
|
||||
title: 'Problem 3: Largest prime factor'
|
||||
title: 'Problema 3: il più grande fattore primo'
|
||||
challengeType: 5
|
||||
forumTopicId: 301952
|
||||
dashedName: problem-3-largest-prime-factor
|
||||
@ -8,55 +8,55 @@ dashedName: problem-3-largest-prime-factor
|
||||
|
||||
# --description--
|
||||
|
||||
The prime factors of 13195 are 5, 7, 13 and 29.
|
||||
I fattori primi di 13195 sono 5, 7, 13 e 29.
|
||||
|
||||
What is the largest prime factor of the given `number`?
|
||||
Qual è il fattore primo più grande del `number` dato?
|
||||
|
||||
# --hints--
|
||||
|
||||
`largestPrimeFactor(2)` should return a number.
|
||||
`largestPrimeFactor(2)` dovrebbe restituire un numero.
|
||||
|
||||
```js
|
||||
assert(typeof largestPrimeFactor(2) === 'number');
|
||||
```
|
||||
|
||||
`largestPrimeFactor(2)` should return 2.
|
||||
`largestPrimeFactor(2)` dovrebbe restituire 2.
|
||||
|
||||
```js
|
||||
assert.strictEqual(largestPrimeFactor(2), 2);
|
||||
```
|
||||
|
||||
`largestPrimeFactor(3)` should return 3.
|
||||
`largestPrimeFactor(3)` dovrebbe restituire 3.
|
||||
|
||||
```js
|
||||
assert.strictEqual(largestPrimeFactor(3), 3);
|
||||
```
|
||||
|
||||
`largestPrimeFactor(5)` should return 5.
|
||||
`largestPrimeFactor(5)` dovrebbe restituire 5.
|
||||
|
||||
```js
|
||||
assert.strictEqual(largestPrimeFactor(5), 5);
|
||||
```
|
||||
|
||||
`largestPrimeFactor(7)` should return 7.
|
||||
`largestPrimeFactor(7)` dovrebbe restituire 7.
|
||||
|
||||
```js
|
||||
assert.strictEqual(largestPrimeFactor(7), 7);
|
||||
```
|
||||
|
||||
`largestPrimeFactor(8)` should return 2.
|
||||
`largestPrimeFactor(8)` dovrebbe restituire 2.
|
||||
|
||||
```js
|
||||
assert.strictEqual(largestPrimeFactor(8), 2);
|
||||
```
|
||||
|
||||
`largestPrimeFactor(13195)` should return 29.
|
||||
`largestPrimeFactor(13195)` dovrebbe restituire 29.
|
||||
|
||||
```js
|
||||
assert.strictEqual(largestPrimeFactor(13195), 29);
|
||||
```
|
||||
|
||||
`largestPrimeFactor(600851475143)` should return 6857.
|
||||
`largestPrimeFactor(600851475143)` dovrebbe restituire 6857.
|
||||
|
||||
```js
|
||||
assert.strictEqual(largestPrimeFactor(600851475143), 6857);
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f3701000cf542c50fe83
|
||||
title: 'Problem 4: Largest palindrome product'
|
||||
title: 'Problema 4: Prodotto palindromo più grande'
|
||||
challengeType: 5
|
||||
forumTopicId: 302065
|
||||
dashedName: problem-4-largest-palindrome-product
|
||||
@ -8,25 +8,25 @@ dashedName: problem-4-largest-palindrome-product
|
||||
|
||||
# --description--
|
||||
|
||||
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.
|
||||
Un numero palindromico rimane lo stesso se viene letto in entrambi i sensi. Il palindromo più grande ottenuto dal prodotto con due numeri a due cifre è 9009 = 91 × 99.
|
||||
|
||||
Find the largest palindrome made from the product of two `n`-digit numbers.
|
||||
Trova il più grande palindromo formato dal prodotto di due numeri con `n` cifre.
|
||||
|
||||
# --hints--
|
||||
|
||||
`largestPalindromeProduct(2)` should return a number.
|
||||
`largestPalindromeProduct(2)` dovrebbe restituire un numero.
|
||||
|
||||
```js
|
||||
assert(typeof largestPalindromeProduct(2) === 'number');
|
||||
```
|
||||
|
||||
`largestPalindromeProduct(2)` should return 9009.
|
||||
`largestPalindromeProduct(2)` dovrebbe restituire 9009.
|
||||
|
||||
```js
|
||||
assert.strictEqual(largestPalindromeProduct(2), 9009);
|
||||
```
|
||||
|
||||
`largestPalindromeProduct(3)` should return 906609.
|
||||
`largestPalindromeProduct(3)` dovrebbe restituire 906609.
|
||||
|
||||
```js
|
||||
assert.strictEqual(largestPalindromeProduct(3), 906609);
|
||||
|
Reference in New Issue
Block a user