You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ozan Onur TEK edited this page Mar 21, 2016
·
3 revisions
isPrime(int p)
Returns 'true' if p is prime
Returns 'false' if p is not prime
Usage:
Java Code:
public class Test {
public static void main(String...args){
boolean isPr =false;
isPr = EasyMath.isPrime(7);
System.out.println(isPr);
}
}
//Console Output:
true