Stamets@lemmy.world to RPGMemes @ttrpg.network · 1 year agoMandarin for Gnomish?lemmy.worldimagemessage-square44fedilinkarrow-up1286arrow-down16
arrow-up1280arrow-down1imageMandarin for Gnomish?lemmy.worldStamets@lemmy.world to RPGMemes @ttrpg.network · 1 year agomessage-square44fedilink
minus-squaremilkisklim@lemm.eelinkfedilinkarrow-up7·1 year ago All I remember from my infernal class is to ask if a number is prime.... ^1?$|^(11+?)\1+$
minus-squarethreelonmusketeers@sh.itjust.workslinkfedilinkEnglisharrow-up4·edit-21 year agoExplanation by Matt Parker: How on Earth does \^.?$|\^(..+?)\1+$ produce primes?
minus-squaremilkisklim@lemm.eelinkfedilinkarrow-up2·1 year agoYeah thatll do the trick too, I couldn’t find the video so I just copy pasted something from stack overflow
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