r/adventofcode • u/daggerdragon • Dec 20 '15
SOLUTION MEGATHREAD --- Day 20 Solutions ---
This thread will be unlocked when there are a significant amount of people on the leaderboard with gold stars.
Here's hoping tonight's puzzle isn't as brutal as last night's, but just in case, I have Lord of the Dance Riverdance on TV and I'm wrapping my presents to kill time. :>
edit: Leaderboard capped, thread unlocked!
We know we can't control people posting solutions elsewhere and trying to exploit the leaderboard, but this way we can try to reduce the leaderboard gaming from the official subreddit.
Please and thank you, and much appreciated!
--- Day 20: Infinite Elves and Infinite Houses ---
Post your solution as a comment. Structure your post like previous daily solution threads.
13
Upvotes
View all comments
Show parent comment
2
u/oantolin Dec 20 '15
You're right, I meant to say most people went with what I called option (2), but forgot to say that.
Well, number theorists know amazing things about prime numbers and divisors and so on; don't count them out yet! For example, there are good algorithms for, given k, finding the minimum n with exactly k divisors; that avoid finding the numbers of divisors of all lower n. There might be a similar good algorithm for this question.