Commit dcbf58bb authored by yazan.halloul's avatar yazan.halloul

Add crate range array commit

parent f98347fc
package primeChecker;
public class PrimeChecker {
public boolean isPrime(int number) {
if (number < 2)
return false;
for (int i = 2; i * i <= number; i++) {
if (number % i == 0)
return false;
}
return true;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment