r/adventofcode • u/daggerdragon • Dec 04 '15
SOLUTION MEGATHREAD --- Day 4 Solutions ---
--- Day 4: The Ideal Stocking Stuffer ---
Post your solution as a comment. Structure your post like the Day Three thread.
15
Upvotes
View all comments
Show parent comment
1
u/Godspiral Dec 04 '15
dyadic gethash was added in 8.03 iirc
The version you used is faster when you don't want a hex result. Not sure if hexhash used.
without using rx,
nzeros =: (x#'0')
while. nzeros -.@-: x {. md5 hexhash y,":num ...
good job functionalizing it though. Explicit is probably faster in this case.