[rust] Day 4.1
change
commit 180a73c1d1b0fd2e2f1a245eec30d196c662bf4f
author Alpha Chen <alpha.chen@gmail.com>
date
parent e3fcf731
diff --git a/rust/src/day_04.rs b/rust/src/day_04.rs
index 9e7f2e6..daa28db 100644
--- a/rust/src/day_04.rs
+++ b/rust/src/day_04.rs
@@ -25,7 +25,7 @@ impl Day for Day04 {
             md5.input(key);
             md5.input(i.to_string().as_bytes());
             md5.result(&mut out);
-            if out[0] == 0 && out[1] == 0 && out[2] >> 4 == 0 {
+            if out[0] == 0 && out[1] == 0 && out[2] == 0 {
                 break;
             }
             md5.reset();