Testing divisibility with state machines | Hacker News Reader