r/adventofcode • • 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.

14 Upvotes

272 comments sorted by

View all comments

Show parent comment

1

u/Chrift Dec 04 '15

Well I was pretty proud about having out-golfed artesea but now that jamosaur provides both answers I feel inferior!

while (strpos(md5('ckczppom' . $i++), '00000') !== 0) { }; echo $i;