0
How to make an checker for prime numbers
I know how but ineed your help to make the negative number to be not a prime number
3 Answers
+ 9
boolean isPrime(int num) {
if (num < 0)
return false;
// Actual Logic
}
+ 1
you mean the negative number to be recognized? well, if the number is less than zero then it is definately negative. Hope that helps
0
can you show me how?