issues
search
CyanSalt
/
notebook
3
stars
0
forks
source link
正则表达式判断数字是否为质数
#8
Open
CyanSalt
opened
6 years ago
CyanSalt
commented
6 years ago
path: regexp-is-prime
x => !/^,?$|^(,,+?)\1+$/.test(Array(++x))
path: regexp-is-prime