You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/12-while-for/7-list-primes/task.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,16 @@ importance: 3
2
2
3
3
---
4
4
5
-
# Output prime numbers
5
+
# Atiduoti pirminius numerius
6
6
7
-
An integer number greater than `1`is called a [prime](https://en.wikipedia.org/wiki/Prime_number) if it cannot be divided without a remainder by anything except `1` and itself.
7
+
Sveikieji skaičiai didesni už `1`yra vadinami [prime](https://en.wikipedia.org/wiki/Prime_number), jeigu jie gali būti padalinti be liekanos tik iš pačio savęs arba `1`.
8
8
9
-
In other words, `n > 1`is a prime if it can't be evenly divided by anything except `1`and`n`.
9
+
Kitaip sakant, `n > 1`yra pirminis, jeigu jis negali būti lygiai padalintas iš nieko kitaip kaip tik `1`ir`n`.
10
10
11
-
For example, `5`is a prime, because it cannot be divided without a remainder by `2`, `3`and`4`.
11
+
Pavyzdžiui, `5`yra pirminis, nes negali būti padalintas be liekanos iš `2`, `3`ir`4`.
12
12
13
-
**Write the code which outputs prime numbers in the interval from `2`to`n`.**
13
+
**Parašykite kodą, kuris atiduotų pirminius numerius intervalu tarp `2`iki`n`.**
14
14
15
-
For `n = 10`the result will be`2,3,5,7`.
15
+
Šiuo atveju `n = 10`rezultatas būtų`2,3,5,7`.
16
16
17
-
P.S. The code should work for any `n`, not be hard-tuned for any fixed value.
17
+
P.S. Kodas turi veikti bet kuriam `n`, o ne paruoštas atitinkamoms vertėms.
0 commit comments