

If the set of all strings of composite length is a regular language, you can use that to prove the set of all strings of prime length are also a regular language.
But it’s also easy to prove that the set of language of strings of prime length is not regular, and thus the language of strings of composite length also can’t be regular.


Contabo is cheap but has some weird quirks. I pay about five euros a month. My server got mysteriously rolled by two days and they denied anything happened to it. I restored from backups but it was odd.