@@ -0,0 +1,739 @@
+import java.util.Scanner;%0A%0Apublic class VileGrasshoppers %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        int grasshoppersTop = scanner.nextInt();%0A        int vileTop = scanner.nextInt();%0A        for (int i = vileTop; i %3E grasshoppersTop; i--) %7B%0A            if (isPrime(i, grasshoppersTop)) %7B%0A                System.out.println(i);%0A                return;%0A            %7D%0A        %7D%0A        System.out.println(%22-1%22);%0A    %7D%0A%0A    private static boolean isPrime(int i, int grasshoppersTop) %7B%0A        for (int j = 2; j %3C= Math.min((int) Math.sqrt(i), grasshoppersTop); j++) %7B%0A            if (i %25 j == 0) %7B%0A                return false;%0A            %7D%0A        %7D%0A        return true;%0A    %7D%0A%7D%0A

Add VileGrasshoppers