In this Python example tutorial, we are going to write Python program to print prime numbers in an intervals.