Javatpoint Logo
Javatpoint Logo

Python Program to Print all Prime Numbers between an Interval

We have already read the concept of prime numbers in the previous program. Here, we are going to print the prime numbers between given interval.

See this example:

This example will show the prime numbers between 10 and 50.

Output:

Python Condition And Loops6



Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA