Write a PYTHON program to show all non -prime numbers in the entered range.
Answers
Answered by
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
India Languages,
16 hours ago
India Languages,
16 hours ago
Physics,
16 hours ago
India Languages,
1 day ago
English,
8 months ago