Most efficient algorithm for determining if X out of N inputs are true | Hacker News Reader