@@ -0,0 +1,304 @@
+import java.math.BigInteger;%0Aimport java.util.Scanner;%0A%0Apublic class prime %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09BigInteger a = new BigInteger(%221299827%22);%0A%09%09//User miller rabin & Lucas Lehmer%0A%09%09boolean res = a.isProbablePrime(10);%0A%09%09System.out.println(res? %22It's prime%22:%22It's not prime%22);%0A%09%7D%0A%0A%7D%0A

Add algorithm to find if a number is prime in java.