write a python program that prints all prime numbers between 1 and 100000 .
Answers
Answered by
2
for number in range(1, 100001):
count = 0
for i in range(2, (number//2 + 1)):
if number % i == 0:
count = count + 1
break
if count == 0 and number != 1:
print(number)
Similar questions