News for hackers. Stuff that matters.
Re:A regular expression to check for prime numbers by umanwizard on Wednesday June 21, 2023 @11:27AM (#36419779)
> At least IIRC, it's been a 20+ years since I last took a Discrete Math course :)

Your memory is correct and there is very simple intuition for this. Regular languages are those that can be matched by a machine with bounded memory. So, let's say that bound is "n" bits. Then your machine will not be able to read in unary strings larger than 2^n.

There are no comments on this comment yet.