a simple program that finds the prime numbers between the two intervals given by the user