From 0c3a0ce0aafb554ddf3978f3b9227c7c2148d77c Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Sun, 8 Sep 2024 21:27:13 -0500 Subject: [PATCH] type hinting --- rust/src/problems/p0028.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/problems/p0028.rs b/rust/src/problems/p0028.rs index 28716b13..7fd13d2c 100644 --- a/rust/src/problems/p0028.rs +++ b/rust/src/problems/p0028.rs @@ -51,7 +51,7 @@ use crate::include::utils::Answer; pub fn p0028() -> Answer { let mut answer: u32 = 1; - for i in 1..(1002 / 2) { + for i in 1..(1002u32 / 2) { let start = (2 * i - 1).pow(2) + 1; answer += range_entry3(start, 1, 1 * 2 * i - 1) + range_entry3(start, 1, 2 * 2 * i - 1) +