Skip to content

Commit

Permalink
Attempt p7 in Java (8)
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 16, 2024
1 parent 543382b commit 983a371
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions java/src/main/java/euler/p0007.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
public class p0007 implements IEuler {
@Override
public Object answer() {
return Primes.primes()
.skip(10000)
.findFirst()
.orElseThrow(() -> new RuntimeException("Prime number not found"));
return (int) Primes.primes()
.skip(10000)
.findFirst()
.orElseThrow(() -> new RuntimeException("Prime number not found"));
}
}

0 comments on commit 983a371

Please sign in to comment.