count = 0
number = 1
while True:
if number == 1:
number += 1
continue
elif number % 2 == 0 or number % 3 == 0 or number % 5 == 0 or number % 7 == 0:
count += 1
elif count == 10001:
break
number += 1
print(number)
elif
из этого блока if
в отдельныйcount = 0
number = 1
while True:
if number == 1:
number += 1
continue
elif number % 2 == 0 or number % 3 == 0 or number % 5 == 0 or number % 7 == 0:
count += 1
if count == 10001:
break
number += 1
print(number)