Created
December 4, 2015 16:29
-
-
Save joebo/b47e8fd467bcf6826b81 to your computer and use it in GitHub Desktop.
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
genHash=: ([: gethash_jqtide_ "1 ('md5' ;"1 ([: (INPUT , ":&])"0 i.))) | |
isAllNumber=: ([: *./ 10&>) @: ('0123456789' i. ]) | |
filter=: [: isAllNumber [ {. ] | |
doFilter=: (] #~ [ filter"1 ]) | |
getAnswer=:([: ((0&{:: /:~ 1&{::)@:(0&{::) i.~ 1&{::) (] (1&{:: (([ ({."1;]) doFilter);]) genHash&(0&{::)))) | |
getAnswer (1000000;5) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment