This commit is contained in:
2025-12-11 18:06:09 +05:00
parent bfa7413f9c
commit e98dd2f107
35 changed files with 0 additions and 0 deletions

21
operators_27.py Normal file
View File

@@ -0,0 +1,21 @@
n = int(input("Введите количество простых чисел: "))
count = 0
num = 2
while count < n:
is_prime = True
for i in range(2, num):
if num % i == 0:
is_prime = False
break
if is_prime:
print(num, end=" ")
count += 1
num += 1
print()