You are viewing a single comment's thread. Return to all comments →
One Liner:
System.out.println((new BigInteger(n)).isProbablePrime(50) == true ? "prime":"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 →
One Liner:
System.out.println((new BigInteger(n)).isProbablePrime(50) == true ? "prime":"not prime") ;