Skip to content

Commit cde751f

Browse files
phrdangactions-user
authored andcommitted
Bot: Prettified Java code!
1 parent 5b614d8 commit cde751f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/codefortomorrow/advanced/chapter13/solutions/PrimePractice.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static void main(String[] args) {
2727
if (number != -1) {
2828
if (isPrime(number, 2)) {
2929
System.out.println("That is a prime!");
30-
} else {
30+
} else {
3131
System.out.println("Not a prime!");
3232
}
3333
}
@@ -46,7 +46,7 @@ public static boolean isPrime(int n, int z) {
4646
if (n <= 2) {
4747
return n == 2;
4848
}
49-
49+
5050
// If n is divisible by the current divisor,
5151
// it has a factor other than 1 and thus is
5252
// not prime

0 commit comments

Comments
 (0)