How on Earth does ^.?$|^(..+?)1+$ produce primes?
From Standup Mathematician. Take your personal data back with Incogni! Use code standupmaths at the link below and get 60% off an annual plan: https://incogni.com/standupmaths ^.?$|^(..+?)1+$ Props will be for sale here: https://www.ebay.co.uk/usr/standupmaths Fantastic blog post by Illya Gerasymchuk. "Demystifying The Regular Expression That Checks If A Number Is Prime" https://illya.sh/the-codeumentary-blog/regular-expression-check-if-number-is-prime/ Thanks to everyone who…