Content
11:11 added and commented on a Python snippet import re def isprime (n) : return not re.match(r"1? (11?)1", ""n) Today 18.20 AM That’s very cool. I have no idea how it works. You’ll have to explain to me the , the ? and the I. And the r. And the backslash. And the "1"n. think I understand the "not". 11:12 PM added and commented on a Python snippet 1 import re def is prime(n): 2 3 return not re.match (r"1? (11?) 15" "1"n) to celebrate the new prime year, here is a proposed way to check for prime number in python. Todav 5:36 AM I hope that you’re never responsible for teaching anyone how to compute.