Skip to content

Commit

Permalink
Merge pull request #430 from ajayboseac/master
Browse files Browse the repository at this point in the history
Fixes #420
  • Loading branch information
stkent authored Apr 20, 2017
2 parents d4522cd + da21539 commit f64a37a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions exercises/nth-prime/src/example/java/PrimeCalculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ private boolean isPrime(int n) {
.rangeClosed(2, (int) Math.ceil(Math.sqrt(n)))
.anyMatch((int i) -> n % i == 0);

if (divisible) {
return false;
}

return true;
return !divisible;
}
}

0 comments on commit f64a37a

Please sign in to comment.