You are viewing a single comment's thread. Return to all comments →
Just add this to the main method :)
if((new BigInteger(n).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 →
Just add this to the main method :)