update added

pull/900/head
Devesh Mehara 2022-10-05 17:46:11 +05:30 committed by GitHub
parent 7c3930d551
commit 0011015871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ public class main {
public static boolean isPrime(int num) { public static boolean isPrime(int num) {
for (int i = 2; i * i <= num; i++) { for (int i = 2; i * i <= num; i++) {
if (num % 2 == 0) { if (num % i == 0) {
return false; return false;
} }
} }