def print_primes(low_number, high_number):
for number in range(low_number, high_number + 1):
if number > 1:
for i in range(2, number):
if number % i == 0:
break
else:
print(number)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
def print_primes(low_number, high_number):
for number in range(low_number, high_number + 1):
if number > 1:
for i in range(2, number):
if number % i == 0:
break
else:
print(number)