From fd16fea35cb8df47251388fac4f74cc36404285c Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Thu, 11 Jul 2024 23:40:27 -0500 Subject: [PATCH] Fix typing (again) --- rust/src/p0003.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/p0003.rs b/rust/src/p0003.rs index e602c2de..1a52f253 100644 --- a/rust/src/p0003.rs +++ b/rust/src/p0003.rs @@ -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(); }