update added
parent
7c3930d551
commit
0011015871
|
@ -10,7 +10,7 @@ public class main {
|
|||
|
||||
public static boolean isPrime(int num) {
|
||||
for (int i = 2; i * i <= num; i++) {
|
||||
if (num % 2 == 0) {
|
||||
if (num % i == 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue