Python Program to Print all Prime Numbers in an Interval

 21 - Feb - 2022
 XpertPhp
 46

In this article, We will explain to you python program to print all prime numbers in an interval. so you can see our Prime Numbers python program example. Example

start=11
end=25
for i in range(start,end+i):
if i>1:
 for j in range(2,i):
   if(i % j==0):
    break
   else:
    print(i)
Output
11
13
17
19
23