Skip to content

Commit

Permalink
Fix type inference error
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 18, 2024
1 parent 0bf99db commit 26d06f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/p0010.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ use crate::primes::primes;
pub fn p0010() -> i128 {
return primes::<u64>()
.take_while(|&p| p < 2000000)
.sum()
.sum::<u64>()
.into();
}

0 comments on commit 26d06f3

Please sign in to comment.