You are viewing a single comment's thread. Return to all comments →
Passed all test cases:
import static java.lang.System.in; class Prime { void checkPrime(int ... args){ for(int i : args){ BigInteger val = new BigInteger(String.valueOf(i)); if(val.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 →
Passed all test cases: