You are viewing a single comment's thread. Return to all comments →
import static java.lang.System.in; class Prime { public void checkPrime(int ... num ) { for (int i = 0; i < num.length; i++) { BigInteger bigInteger = new BigInteger(String.valueOf(num[i])); boolean flag = bigInteger.isProbablePrime(20); if (flag) System.out.print(num[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 →