Computer Science, asked by anujchakraborty, 1 day ago

Write a PYTHON program to show all non -prime numbers in the entered range.

Answers

Answered by okay1024
3

a = int(input())

b = int(input())

for x in range (a, b+1) :

if x > 1 :

for i in range (2, x) :

if x ℅ i == 0 :

break

else :

print (x)

Similar questions