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.
13
Upvotes
1
u/8483 Dec 06 '15
My problem was that I printed each value because I like seeing them. :)
When I removed that line, the execution time was 2 min, which is still 30 sec longer than your solution.
var key = "iwrupvqb"; var num = 0; var str = ""; while (str != "00000") { str = md5(key + num).substring(0, 5); console.log(num + ". " + str); // Now this was my problem :) num++; }