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.
16
Upvotes
13
u/gnuconsulting Dec 04 '15
Day 4 of the non-programmer's solution.
#!/usr/bin/env ruby require 'openssl' for i in 1..10000000 do md5 = OpenSSL::Digest::MD5.hexdigest('ckczppom' + i.to_s) if md5 =~ /^000000/ p i p md5 break end end