From 59edea4a6c97491e1edae48a477b377596fda611 Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Thu, 22 Aug 2024 22:57:29 -0500 Subject: [PATCH] Fix compilation --- rust/src/p0027.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/p0027.rs b/rust/src/p0027.rs index 9d42c3db..9ffd8df6 100644 --- a/rust/src/p0027.rs +++ b/rust/src/p0027.rs @@ -33,7 +33,7 @@ use crate::include::utils::Answer; pub fn p0027() -> Answer { let mut streak: i64 = 0; let mut answer: i64 = 0; - let cached_primes = primes_until::(1001).flat_map(|&x| vec![x, -x]).collect(); + let cached_primes = primes_until::(1001).flat_map(|x| vec![x, -x]).collect(); for a in (-999)..1000 { for &b in &cached_primes {