lower = 800
upper = 900
print("Print the number's from ",lower," and ",upper,".")
for num in range(lower,upper + 1):
if num > 1:
for i in range(2, num):
if (num % i) == 0:
break
else:
print(num)
# Thanks to https://www.codegrepper.com/profile/farid
# Just tune his answer into easy to use function
def prime_numbers(start_num, end_num):
for number in range(start_num , end_num + 1):
is_prime = True
for counter in range(2,number):
value = number % counter
if value == 0:
is_prime = False
break
if is_prime == True:
print(number)