Skip to content

Commit bdd515a

Browse files
2 parents e0c8fc0 + ef8efa2 commit bdd515a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

01-GettingStarted/03-IsPrimeNumber/Main.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@ public static void main(String[] args){
6161

6262
public static boolean isPrime(int number){
6363
for(int i=2; i*i<=number; i++){
64-
if(number%i ==0){
65-
return false;
66-
}
67-
}
64+
if(number %i ==0) return false;
65+
}
6866
return true;
6967
}
7068

71-
}
69+
}

0 commit comments

Comments
 (0)