We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b836c44 commit eb28dd5Copy full SHA for eb28dd5
src/com/codefortomorrow/advanced/chapter13/solutions/PrimePractice.java
@@ -34,11 +34,11 @@ public static void main(String[] args) {
34
}
35
36
/**
37
- * isPrime checks the primality of a given integer
38
- * @param n The integer to check
39
- * @param z Current Divisor(used for recursion)
40
- * @return boolean true if prime and false if not
41
- */
+ * isPrime checks the primality of a given integer
+ * @param n The integer to check
+ * @param z Current Divisor(used for recursion)
+ * @return boolean true if prime and false if not
+ */
42
public static boolean isPrime(int n, int z) {
43
//Check base cases
44
if (n <= 2) return (n == 2) ? true : false;
0 commit comments