Python Saved Program: beautiful-city
Here's the online compiler accompanied with IDE at your service. This is a saved code by one of our users. Try it out or save your own from the IDE page and don't forget to leave a feedback. You can find that at the bottom of the page.
# Python program to display all the prime numbers within a given range lower = int(input()) upper = int(input()) print("Prime numbers between",lower,"and",upper,"are:") for num in range(lower,upper + 1): if num > 1: for i in range(2,num): if (num % i) == 0: break else: print(num)