Demystifying the regular expression that checks if a number is prime (2016)