CyanSalt / notebook

3 stars 0 forks source link

正则表达式判断数字是否为质数 #8

Open CyanSalt opened 5 years ago

CyanSalt commented 5 years ago

path: regexp-is-prime


x => !/^,?$|^(,,+?)\1+$/.test(Array(++x))