Last active
December 16, 2015 03:27
-
-
Save sbenhaim/4d37f04bf583ec4c2a26 to your computer and use it in GitHub Desktop.
Advent of Code: 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qualified Data.Hash.MD5 as MD5 | |
main = do | |
print $ head $ [ n | n <- [0..] , (==) "000000" $ take 6 $ (MD5.md5s . MD5.Str) ("bgvyzdsv" ++ (show n)) ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment