Skip to content

automata

Regularly Divisble

Update: read the comments at Hacker News [http://news.ycombinator.com/item?id=1937062] to see some succinct approaches to this, as discussed by gjm11, qntm and patio11. Thanks to Robin for providing this demonstration [http://s3.boskent.com/divisibility-regex/divisibility-regex.html] that can find a regex for testing divisibility