efficient program to find prime numbers between 2 numbers code example
Example: display prime numbers between two intervals in python
lowernum = int(input(“Enter your lower number”))
uppernum = int(input(“Enter your upper number”))
for num in range(lowernum,uppernum +1):
if num> 1:
for num in range(2,num):
if (num % 1) == 0:
break
else:
print(num)