chore(i18n,curriculum): update translations (#43089)

This commit is contained in:
camperbot
2021-08-02 23:05:44 +09:00
committed by GitHub
parent 3350cb4522
commit 6b82f3831c
123 changed files with 1300 additions and 1301 deletions

View File

@ -1,6 +1,6 @@
---
id: 5900f36e1000cf542c50fe80
title: 'Problem 1: Multiples of 3 and 5'
title: 'Problema 1: Múltiplos de 3 e 5'
challengeType: 5
forumTopicId: 301722
dashedName: problem-1-multiples-of-3-and-5
@ -8,37 +8,37 @@ dashedName: problem-1-multiples-of-3-and-5
# --description--
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Se listarmos todos os números naturais abaixo de 10 que são múltiplos de 3 ou 5, obteremos 3, 5, 6 e 9. A soma destes múltiplos é 23.
Find the sum of all the multiples of 3 or 5 below the provided parameter value `number`.
Calcule a soma de todos os múltiplos de 3 ou 5 menor que o parâmetro `number`.
# --hints--
`multiplesOf3and5(10)` should return a number.
`multiplesOf3and5(10)` deve retornar um número.
```js
assert(typeof multiplesOf3and5(10) === 'number');
```
`multiplesOf3and5(49)` should return 543.
`multiplesOf3and5(49)` deve retornar 543.
```js
assert.strictEqual(multiplesOf3and5(49), 543);
```
`multiplesOf3and5(1000)` should return 233168.
`multiplesOf3and5(1000)` deve retornar 233168.
```js
assert.strictEqual(multiplesOf3and5(1000), 233168);
```
`multiplesOf3and5(8456)` should return 16687353.
`multiplesOf3and5(8456)` deve retornar 16687353.
```js
assert.strictEqual(multiplesOf3and5(8456), 16687353);
```
`multiplesOf3and5(19564)` should return 89301183.
`multiplesOf3and5(19564)` deve retornar 89301183.
```js
assert.strictEqual(multiplesOf3and5(19564), 89301183);

View File

@ -1,6 +1,6 @@
---
id: 5900f3761000cf542c50fe89
title: 'Problem 10: Summation of primes'
title: 'Problema 10: Soma dos números primos'
challengeType: 5
forumTopicId: 301723
dashedName: problem-10-summation-of-primes
@ -8,37 +8,37 @@ dashedName: problem-10-summation-of-primes
# --description--
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
A soma dos números primos abaixo de 10 é 2 + 3 + 5 + 7 = 17.
Find the sum of all the primes below `n`.
Encontre a soma de todos os números primos abaixo de `n`.
# --hints--
`primeSummation(17)` should return a number.
`primeSummation(17)` deve retornar um número.
```js
assert(typeof primeSummation(17) === 'number');
```
`primeSummation(17)` should return 41.
`primeSummation(17)` deve retornar 41.
```js
assert.strictEqual(primeSummation(17), 41);
```
`primeSummation(2001)` should return 277050.
`primeSummation(2001)` deve retornar 277050.
```js
assert.strictEqual(primeSummation(2001), 277050);
```
`primeSummation(140759)` should return 873608362.
`primeSummation(140759)` deve retornar 873608362.
```js
assert.strictEqual(primeSummation(140759), 873608362);
```
`primeSummation(2000000)` should return 142913828922.
`primeSummation(2000000)` deve retornar 142913828922.
```js
assert.strictEqual(primeSummation(2000000), 142913828922);

View File

@ -1,6 +1,6 @@
---
id: 5900f3781000cf542c50fe8a
title: 'Problem 11: Largest product in a grid'
title: 'Problema 11: Maior produto em uma grade'
challengeType: 5
forumTopicId: 301734
dashedName: problem-11-largest-product-in-a-grid
@ -8,7 +8,7 @@ dashedName: problem-11-largest-product-in-a-grid
# --description--
In the 20×20 grid below, four numbers along a diagonal line have been marked in red.
Na grade 20×20 abaixo, quatro números ao longo de uma linha diagonal foram marcados em vermelho.
<div style='text-align: center;'>
08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08<br>
@ -33,25 +33,25 @@ In the 20×20 grid below, four numbers along a diagonal line have been marked in
01 70 54 71 83 51 54 69 16 92 33 48 61 43 52 01 89 19 67 48<br>
</div>
The product of these numbers is 26 × 63 × 78 × 14 = 1788696.
O produto desses números é 26 × 63 × 78 × 14 = 1788696.
What is the greatest product of four adjacent numbers in the same direction (up, down, left, right, or diagonally) in a given `arr` grid?
Qual é o maior produto de quatro números adjacentes (próximos) na mesma direção (cima, baixo, esquerda, direita ou diagonal) na grade fornecida através do parâmetro `arr`?
# --hints--
`largestGridProduct(testGrid)` should return a number.
`largestGridProduct(testGrid)` deve retornar um número.
```js
assert(typeof largestGridProduct(testGrid) === 'number');
```
`largestGridProduct(testGrid)` should return 14169081.
`largestGridProduct(testGrid)` deve retornar 14169081.
```js
assert.strictEqual(largestGridProduct(testGrid), 14169081);
```
`largestGridProduct(grid)` should return 70600674.
`largestGridProduct(grid)` deve retornar 70600674.
```js
assert.strictEqual(largestGridProduct(grid), 70600674);

View File

@ -1,6 +1,6 @@
---
id: 5900f3781000cf542c50fe8b
title: 'Problem 12: Highly divisible triangular number'
title: 'Problema 12: Maior número triangular divisível'
challengeType: 5
forumTopicId: 301746
dashedName: problem-12-highly-divisible-triangular-number
@ -8,57 +8,57 @@ dashedName: problem-12-highly-divisible-triangular-number
# --description--
The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:
A sequência de números de triângulos é gerada pela adição de números naturais. Portanto, o número do 7º triângulo é 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. Os primeiros dez termos seriam:
<div style='text-align: center;'>1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...</div>
Let us list the factors of the first seven triangle numbers:
Abaixo está a lista dos 7 primeiros números do triângulo:
<div style='padding-left: 4em;'><b>1:</b> 1</div>
<div style='padding-left: 4em;'><b>3:</b> 1, 3</div>
<div style='padding-left: 4em;'><b>6:</b> 1, 2, 3, 6</div>
<div style='padding-left: 4em;'><b>10:</b> 1, 2, 5, 10</div>
<div style='padding-left: 4em;'><b>15:</b> 1, 3, 5, 15</div>
<div style='padding-left: 4em;'><b>21:</b> 1, 3, 7, 21</div>
<div style='padding-left: 4em;'><b>71:</b> 1, 2, 3, 21</div>
<div style='padding-left: 4em;'><b>28:</b> 1, 2, 4, 7, 14, 28</div>
We can see that 28 is the first triangle number to have over five divisors.
Podemos ver que 28 é o primeiro triângulo a ter mais de cinco divisores.
What is the value of the first triangle number to have over `n` divisors?
Qual é o valor do primeiro triângulo a ter mais de `n` divisores?
# --hints--
`divisibleTriangleNumber(5)` should return a number.
`divisibleTriangleNumber(5)` deve retornar um número.
```js
assert(typeof divisibleTriangleNumber(5) === 'number');
```
`divisibleTriangleNumber(5)` should return 28.
`divisibleTriangleNumber(5)` deve retornar 28.
```js
assert.strictEqual(divisibleTriangleNumber(5), 28);
```
`divisibleTriangleNumber(23)` should return 630.
`divisibleTriangleNumber(23)` deve retornar 630.
```js
assert.strictEqual(divisibleTriangleNumber(23), 630);
```
`divisibleTriangleNumber(167)` should return 1385280.
`divisibleTriangleNumber(167)` deve retornar 1385280.
```js
assert.strictEqual(divisibleTriangleNumber(167), 1385280);
```
`divisibleTriangleNumber(374)` should return 17907120.
`divisibleTriangleNumber(374)` deve retornar 17907120.
```js
assert.strictEqual(divisibleTriangleNumber(374), 17907120);
```
`divisibleTriangleNumber(500)` should return 76576500.
`divisibleTriangleNumber(500)` deve retornar 76576500.
```js
assert.strictEqual(divisibleTriangleNumber(500), 76576500);

View File

@ -1,6 +1,6 @@
---
id: 5900f36e1000cf542c50fe81
title: 'Problem 2: Even Fibonacci Numbers'
title: 'Problema 2: Apenas números pares da sequência de Fibonacci'
challengeType: 5
forumTopicId: 301838
dashedName: problem-2-even-fibonacci-numbers
@ -8,63 +8,63 @@ dashedName: problem-2-even-fibonacci-numbers
# --description--
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
Cada novo número na sequência de Fibonacci é gerado pela soma dos dois números anteriores. Ao começar com 1 e 2, os primeiros 10 números serão:
<div style='text-align: center;'>1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...</div>
By considering the terms in the Fibonacci sequence whose values do not exceed `n`, find the sum of the even-valued terms.
Considerando os números na sequência de Fibonacci cujos valores não excedem `n`, encontre a soma dos números pares.
# --hints--
`fiboEvenSum(10)` should return a number.
`fiboEvenSum(10)` deve retornar um número.
```js
assert(typeof fiboEvenSum(10) === 'number');
```
Your function should return an `even` value.
A função deve retornar um valor par (`even`).
```js
assert.equal(fiboEvenSum(10) % 2 === 0, true);
```
Your function should sum the even-valued Fibonacci numbers: `fiboEvenSum(8)` should return 10.
A função deve somar os números pares de Fibonacci: `fiboEvenSum(8)` deve retornar 10.
```js
assert.strictEqual(fiboEvenSum(8), 10);
```
`fiboEvenSum(10)` should return 10.
`fiboEvenSum(10)` deve retornar 10.
```js
assert.strictEqual(fiboEvenSum(10), 10);
```
`fiboEvenSum(34)` should return 44.
`fiboEvenSum(34)` deve retornar 44.
```js
assert.strictEqual(fiboEvenSum(34), 44);
```
`fiboEvenSum(60)` should return 44.
`fiboEvenSum(60)` deve retornar 44.
```js
assert.strictEqual(fiboEvenSum(60), 44);
```
`fiboEvenSum(1000)` should return 798.
`fiboEvenSum(1000)` deve retornar 798.
```js
assert.strictEqual(fiboEvenSum(1000), 798);
```
`fiboEvenSum(100000)` should return 60696.
`fiboEvenSum(100000)` deve retornar 60696.
```js
assert.strictEqual(fiboEvenSum(100000), 60696);
```
`fiboEvenSum(4000000)` should return 4613732.
`fiboEvenSum(4000000)` deve retornar 4613732.
```js
assert.strictEqual(fiboEvenSum(4000000), 4613732);

View File

@ -1,6 +1,6 @@
---
id: 5900f36f1000cf542c50fe82
title: 'Problem 3: Largest prime factor'
title: 'Problema 3: Maior fator 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.
Os fatores primos de 13195 são 5, 7, 13 e 29.
What is the largest prime factor of the given `number`?
Qual é o maior fator primo do parâmetro `number`?
# --hints--
`largestPrimeFactor(2)` should return a number.
`largestPrimeFactor(2)` deve retornar um número.
```js
assert(typeof largestPrimeFactor(2) === 'number');
```
`largestPrimeFactor(2)` should return 2.
`largestPrimeFactor(2)` deve retornar 2.
```js
assert.strictEqual(largestPrimeFactor(2), 2);
```
`largestPrimeFactor(3)` should return 3.
`largestPrimeFactor(3)` deve retornar 3.
```js
assert.strictEqual(largestPrimeFactor(3), 3);
```
`largestPrimeFactor(5)` should return 5.
`largestPrimeFactor(5)` deve retornar 5.
```js
assert.strictEqual(largestPrimeFactor(5), 5);
```
`largestPrimeFactor(7)` should return 7.
`largestPrimeFactor(7)` deve retornar 7.
```js
assert.strictEqual(largestPrimeFactor(7), 7);
```
`largestPrimeFactor(8)` should return 2.
`largestPrimeFactor(8)` deve retornar 2.
```js
assert.strictEqual(largestPrimeFactor(8), 2);
```
`largestPrimeFactor(13195)` should return 29.
`largestPrimeFactor(13195)` deve retornar 29.
```js
assert.strictEqual(largestPrimeFactor(13195), 29);
```
`largestPrimeFactor(600851475143)` should return 6857.
`largestPrimeFactor(600851475143)` deve retornar 6857.
```js
assert.strictEqual(largestPrimeFactor(600851475143), 6857);

View File

@ -1,6 +1,6 @@
---
id: 5900f3701000cf542c50fe83
title: 'Problem 4: Largest palindrome product'
title: 'Problema 4: Maior palíndromo de um produto'
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.
Um número palíndromo é aquele que pode ser lido da esquerda para a direita e vice-versa. O maior palíndromo feito a partir do produto de dois algarismos é 9009 = 91 × 99.
Find the largest palindrome made from the product of two `n`-digit numbers.
Encontre o maior palíndromo feito a partir do produto de dois números de `n` dígitos.
# --hints--
`largestPalindromeProduct(2)` should return a number.
`largestPalindromeProduct(2)` deve retornar um número.
```js
assert(typeof largestPalindromeProduct(2) === 'number');
```
`largestPalindromeProduct(2)` should return 9009.
`largestPalindromeProduct(2)` deve retornar 9009.
```js
assert.strictEqual(largestPalindromeProduct(2), 9009);
```
`largestPalindromeProduct(3)` should return 906609.
`largestPalindromeProduct(3)` deve retornar 906609.
```js
assert.strictEqual(largestPalindromeProduct(3), 906609);

View File

@ -1,6 +1,6 @@
---
id: 5900f3711000cf542c50fe84
title: 'Problem 5: Smallest multiple'
title: 'Problema 5: Menor múltiplo'
challengeType: 5
forumTopicId: 302160
dashedName: problem-5-smallest-multiple
@ -8,43 +8,43 @@ dashedName: problem-5-smallest-multiple
# --description--
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.
2520 é o menor número que pode ser dividido por cada um dos números entre 1 e 10, sem nenhum resto.
What is the smallest positive number that is evenly divisible by all of the numbers from 1 to `n`?
Qual é o menor número positivo que é igualmente divisível por todos os números de 1 a `n`?
# --hints--
`smallestMult(5)` should return a number.
`smallestMult(5)` deve retornar um número.
```js
assert(typeof smallestMult(5) === 'number');
```
`smallestMult(5)` should return 60.
`smallestMult(5)` deve retornar 60.
```js
assert.strictEqual(smallestMult(5), 60);
```
`smallestMult(7)` should return 420.
`smallestMult(7)` deve retornar 420.
```js
assert.strictEqual(smallestMult(7), 420);
```
`smallestMult(10)` should return 2520.
`smallestMult(10)` deve retornar 2520.
```js
assert.strictEqual(smallestMult(10), 2520);
```
`smallestMult(13)` should return 360360.
`smallestMult(13)` deve retornar 360360.
```js
assert.strictEqual(smallestMult(13), 360360);
```
`smallestMult(20)` should return 232792560.
`smallestMult(20)` deve retornar 232792560.
```js
assert.strictEqual(smallestMult(20), 232792560);

View File

@ -1,6 +1,6 @@
---
id: 5900f3721000cf542c50fe85
title: 'Problem 6: Sum square difference'
title: 'Problema 6: Diferença da soma dos quadrados'
challengeType: 5
forumTopicId: 302171
dashedName: problem-6-sum-square-difference
@ -8,39 +8,39 @@ dashedName: problem-6-sum-square-difference
# --description--
The sum of the squares of the first ten natural numbers is,
A soma dos quadrados dos primeiros dez números naturais é,
<div style='text-align: center;'>1<sup>2</sup> + 2<sup>2</sup> + ... + 10<sup>2</sup> = 385</div>
The square of the sum of the first ten natural numbers is,
O quadrado da soma dos primeiros dez números naturais é,
<div style='text-align: center;'>(1 + 2 + ... + 10)<sup>2</sup> = 55<sup>2</sup> = 3025</div>
Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 385 = 2640.
Por isso, a diferença entre a soma dos quadrados dos primeiros dez números naturais e o quadrado da soma é 3025 385 = 2640.
Find the difference between the sum of the squares of the first `n` natural numbers and the square of the sum.
Calcule a diferença entre a soma dos quadrados dos primeiros `n` números naturais e o quadrado da soma.
# --hints--
`sumSquareDifference(10)` should return a number.
`sumSquareDifference(10)` deve retornar um número.
```js
assert(typeof sumSquareDifference(10) === 'number');
```
`sumSquareDifference(10)` should return 2640.
`sumSquareDifference(10)` deve retornar 2640.
```js
assert.strictEqual(sumSquareDifference(10), 2640);
```
`sumSquareDifference(20)` should return 41230.
`sumSquareDifference(20)` deve retornar 41230.
```js
assert.strictEqual(sumSquareDifference(20), 41230);
```
`sumSquareDifference(100)` should return 25164150.
`sumSquareDifference(100)` deve retornar 25164150.
```js
assert.strictEqual(sumSquareDifference(100), 25164150);

View File

@ -1,6 +1,6 @@
---
id: 5900f3731000cf542c50fe86
title: 'Problem 7: 10001st prime'
title: 'Problema 7: 10001º número primo'
challengeType: 5
forumTopicId: 302182
dashedName: problem-7-10001st-prime
@ -8,43 +8,43 @@ dashedName: problem-7-10001st-prime
# --description--
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
Ao listar os primeiros seis números primos: 2, 3, 5, 7, 11 e 13, podemos ver que o sexto número primo é 13.
What is the `n`th prime number?
Qual é o `n`-ésimo número primo?
# --hints--
`nthPrime(6)` should return a number.
`nthPrime(6)` deve retornar um número.
```js
assert(typeof nthPrime(6) === 'number');
```
`nthPrime(6)` should return 13.
`nthPrime(6)` deve retornar 13.
```js
assert.strictEqual(nthPrime(6), 13);
```
`nthPrime(10)` should return 29.
`nthPrime(10)` deve retornar 29.
```js
assert.strictEqual(nthPrime(10), 29);
```
`nthPrime(100)` should return 541.
`nthPrime(100)` deve retornar 541.
```js
assert.strictEqual(nthPrime(100), 541);
```
`nthPrime(1000)` should return 7919.
`nthPrime(1000)` deve retornar 7919.
```js
assert.strictEqual(nthPrime(1000), 7919);
```
`nthPrime(10001)` should return 104743.
`nthPrime(10001)` deve retornar 104743.
```js
assert.strictEqual(nthPrime(10001), 104743);

View File

@ -1,6 +1,6 @@
---
id: 5900f3741000cf542c50fe87
title: 'Problem 8: Largest product in a series'
title: 'Problema 8: Maior produto em uma série'
challengeType: 5
forumTopicId: 302193
dashedName: problem-8-largest-product-in-a-series
@ -8,7 +8,7 @@ dashedName: problem-8-largest-product-in-a-series
# --description--
The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832.
O número abaixo possui 1000 algarismos. Se você pegar, em ordem, 4 algarismos quaisquer, o maior produto que você vai encontrar é 9 × 9 × 8 × 9 = 5832.
<div style='text-align: center;'>73167176531330624919225119674426574742355349194934</div>
<div style='text-align: center;'>96983520312774506326239578318016984801869478851843</div>
@ -31,23 +31,23 @@ The four adjacent digits in the 1000-digit number that have the greatest product
<div style='text-align: center;'>05886116467109405077541002256983155200055935729725</div>
<div style='text-align: center;'>71636269561882670428252483600823257530420752963450</div>
Find the `n` adjacent digits in the 1000-digit number that have the greatest product. What is the value of this product?
Encontre os `n` algarismos adjacentes no número de 1000 algarismos que têm o maior produto. Qual é o valor do produto?
# --hints--
`largestProductinaSeries(4)` should return a number.
`largestProductinaSeries(4)` deve retornar um número.
```js
assert(typeof largestProductinaSeries(4) === 'number');
```
`largestProductinaSeries(4)` should return 5832.
`largestProductinaSeries(4)` deve retornar 5832.
```js
assert.strictEqual(largestProductinaSeries(4), 5832);
```
`largestProductinaSeries(13)` should return 23514624000.
`largestProductinaSeries(13)` deve retornar 23514624000.
```js
assert.strictEqual(largestProductinaSeries(13), 23514624000);

View File

@ -1,6 +1,6 @@
---
id: 5900f3761000cf542c50fe88
title: 'Problem 9: Special Pythagorean triplet'
title: 'Problema 9: Terno pitagórico especial'
challengeType: 5
forumTopicId: 302205
dashedName: problem-9-special-pythagorean-triplet
@ -8,35 +8,35 @@ dashedName: problem-9-special-pythagorean-triplet
# --description--
A Pythagorean triplet is a set of three natural numbers, `a` &lt; `b` &lt; `c`, for which,
Um terno pitagórico é um conjunto de três números naturais, `a` &lt; `b` &lt; `c` tal que
<div style='text-align: center;'><var>a</var><sup>2</sup> + <var>b</var><sup>2</sup> = <var>c</var><sup>2</sup></div>
For example, 3<sup>2</sup> + 4<sup>2</sup> = 9 + 16 = 25 = 5<sup>2</sup>.
Por exemplo, 3<sup>2</sup> + 4<sup>2</sup> = 9 + 16 = 25 = 5<sup>2</sup>.
There exists exactly one Pythagorean triplet for which `a` + `b` + `c` = 1000. Find the product `abc` such that `a` + `b` + `c` = `n`.
Há exatamente um terno pitagórico para o qual `a` + `b` + `c` = 1000. Encontre o produto `abc` tal que `a` + `b` + `c` = `n`.
# --hints--
`specialPythagoreanTriplet(24)` should return a number.
`specialPythagoreanTriplet(24)` deve retornar um número.
```js
assert(typeof specialPythagoreanTriplet(24) === 'number');
```
`specialPythagoreanTriplet(24)` should return 480.
`specialPythagoreanTriplet(24)` deve retornar 480.
```js
assert.strictEqual(specialPythagoreanTriplet(24), 480);
```
`specialPythagoreanTriplet(120)` should return 49920, 55080 or 60000
`specialPythagoreanTriplet(120)` deve retornar 49920, 55080 ou 60000
```js
assert([49920, 55080, 60000].includes(specialPythagoreanTriplet(120)));
```
`specialPythagoreanTriplet(1000)` should return 31875000.
`specialPythagoreanTriplet(1000)` deve retornar 31875000.
```js
assert.strictEqual(specialPythagoreanTriplet(1000), 31875000);