You are viewing a single comment's thread. Return to all comments →
/* *@Author : Rehan */ BigInteger a = new BigInteger(n); if(a.isProbablePrime(100)){ System.out.println("prime"); }else{ System.out.println("not prime"); }
Seems like cookies are disabled on this browser, please enable them to open this website
Java Primality Test
You are viewing a single comment's thread. Return to all comments →
/* *@Author : Rehan */ BigInteger a = new BigInteger(n); if(a.isProbablePrime(100)){ System.out.println("prime"); }else{ System.out.println("not prime"); }