Click here to Skip to main content
15,943,089 members

Comments by Medidala Aditya 22BIT0503 (Top 1 by date)

Medidala Aditya 22BIT0503 4-Nov-22 5:03am View    
This is the output I get

0
0
0

The modified program

f=0
lower_value = int(input ("Please, Enter the Lowest Range Value: "))
upper_value = int(input ("Please, Enter the Upper Range Value: "))
print ("")
for number in range (lower_value, upper_value + 1):
if number > 1:
for i in range (2, number):
if (number % i) == 0:
break
else:
if number%10==1:
f=1
print (number,end=' ')
if f==0:
print('0')