Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const isPrime = n => !Array(n).fill(1).join('').match(/^1?$|^(11+?)\1+$/)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement