Java Program to display prime numbers between a given range. num1=Holds the First number num2=Holds the Last number