this post was submitted on 16 May 2025
255 points (97.8% liked)
RPGMemes
11743 readers
273 users here now
Humor, jokes, memes about TTRPGs
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
French? Nah, infernal is Regex
All I remember from my infernal class is to ask if a number is prime....
^1?$|^(11+?)\1+$
Explanation by Matt Parker: How on Earth does
\^.?$|\^(..+?)\1+$
produce primes?Yeah thatll do the trick too, I couldn't find the video so I just copy pasted something from stack overflow