You are viewing a single comment's thread. Return to all comments →
My simple solution using BigInteger's isProbablePrime():::::
import static java.lang.System.in;
class Prime{
public void checkPrime(int ...s) { for(int i:s) { if(BigInteger.valueOf(i).isProbablePrime(1)) System.out.print(i+""); } System.out.println(""); }
}
Seems like cookies are disabled on this browser, please enable them to open this website
Prime Checker
You are viewing a single comment's thread. Return to all comments →
My simple solution using BigInteger's isProbablePrime():::::
import static java.lang.System.in;
class Prime{
}