I've read this article where the /^1?$|^(11+?)\1+$/
Perl regex is used to test if a number is prime or not.
Process:
s = '1' * your_number
If s
matchs the regex, then it's not prime. If it doesn't, it's prime.
How would you translate that regex to Python's re
module?