Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Prime numbers test
Open Workspace
Python
Match
Created 2015-07-31 13:12
2
Regular Expression
r"
^
1
?
$|^
(
11
+?
)
\1
+
$
"
Description
Given a number N represented by its unary form N(1), when RegEx doesn't match N(1), N is prime
Submitted by
LexDias