@@ -0,0 +1,511 @@
+Public Prime number%7B%0APublic static void main(String args%5B%5D) %7B %0Aint s1, s2, s3, flag = 0, i, j; %0AScanner s = new Scanner(System.in);%0A System.out.println (%22Enter the lower limit :%22); %0As1 = s.nextInt();%0A System.out.println (%22Enter the upper limit :%22);%0A s2 = s.nextInt(); %0ASystem.out.println (%22The prime numbers in between the entered limits are :%22); %0Afor(i = s1; i %3C= s2; i++) %7B %0Afor( j = 2; j %3C i; j++) %7B %0Aif(i %25 j == 0) %7B%0A flag = 0; break; %7D %0Aelse %7B flag = 1; %7D %7D%0A if(flag == 1) %7B %0ASystem.out.println(i);%0A %7D %7D %7D%0A

Prime number.java