Skip to content

Commit

Permalink
Fix typing (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 12, 2024
1 parent ee8c293 commit fd16fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/p0003.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ What is the largest prime factor of the number 600851475143 ?
use crate::primes::prime_factors;

pub fn p0003() -> u64 {
return prime_factors(600851475143).max()?;
return prime_factors(600851475143).map(|&x| x?).max();
}

0 comments on commit fd16fea

Please sign in to comment.