Santa needs help mining some AdventCoins (very similar to bitcoins) to use as gifts for all the economically forward-thinking little girls and boys.
- If your secret key is
abcdef
, the answer is609043
, because the MD5 hash ofabcdef609043
starts with five zeroes (000001dbbfa...
), and it is the lowest such number to do so. - If your secret key is
pqrstuv
, the lowest number it combines with to make an MD5 hash starting with five zeroes is1048970
; that is, the MD5 hash ofpqrstuv1048970
looks like000006136ef...
.
Your puzzle answer was 117946
.
Your puzzle answer was 3938038
.
Both parts of this puzzle are complete! They provide two gold stars: 🌟🌟
2015 Day04 - First Answer: 117946
2015 Day04 - Second Answer: 3938038
2015 Day04 - Execution finished in 1.3985531330109 seconds.
*** TESTING 2015 DAY Day04 *** PHPUnit 9.5.10 by Sebastian Bergmann and contributors.
Day04 (mikeroq\AdventOfCode\AdventOfCode2015\Day04\Day04) ✔ Part 1 equals 609043 ✔ Part 1 equals 1048970 ✔ Part 1 real answer equals 117946 ✔ Part 12 real answer equals 3938038
Time: 00:01.797, Memory: 4.00 MB
OK (4 tests, 4 assertions)