Skip to content

Instantly share code, notes, and snippets.

@joebo
Created December 4, 2015 16:29
Show Gist options
  • Save joebo/b47e8fd467bcf6826b81 to your computer and use it in GitHub Desktop.
Save joebo/b47e8fd467bcf6826b81 to your computer and use it in GitHub Desktop.
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