@@ -0,0 +1,404 @@
+import java.math.*;%0Aimport java.util.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        BigInteger n = new BigInteger(scanner.nextLine());%0A        scanner.close();%0A%0A        if (n.isProbablePrime(10)) %7B%0A            System.out.println(%22prime%22);%0A        %7D else %7B%0A            System.out.println(%22not prime%22);%0A        %7D%0A    %7D%0A%7D%0A

Solve java primality test