Skip to content

Commit 2b52de4

Browse files
Update PrimeCheck.java
Done with manual elimination of the double spaces that were creating issues with the format.
1 parent b4c9a23 commit 2b52de4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/com/thealgorithms/maths/PrimeCheck.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public static void main(String[] args) {
2424
}
2525

2626
if (isPrimeNumberOptimised(Long.MAX_VALUE)) {
27-
System.out.println("algo4 verify that " + Long.MAX_VALUE + " is a prime number");
27+
System.out.println("algo4 verify that " + Long.MAX_VALUE + " is a prime number");
2828
} else {
29-
System.out.println("algo4 verify that " + Long.MAX_VALUE + " is not a prime number");
29+
System.out.println("algo4 verify that " + Long.MAX_VALUE + " is not a prime number");
3030
}
3131
scanner.close();
3232
}
@@ -91,7 +91,6 @@ private static long modPow(long a, long b, long c) {
9191

9292
/**
9393
* Checks if a given number is prime using an optimized approach.
94-
*
9594
* @param number the number to check
9695
* @return true if the number is prime, false otherwise
9796
*/

0 commit comments

Comments
 (0)