Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 23, 2024
1 parent 54dca53 commit 59edea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/p0027.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<i64>(1001).flat_map(|&x| vec![x, -x]).collect();
let cached_primes = primes_until::<i64>(1001).flat_map(|x| vec![x, -x]).collect();

for a in (-999)..1000 {
for &b in &cached_primes {
Expand Down

0 comments on commit 59edea4

Please sign in to comment.