Created
May 19, 2019 12:04
-
-
Save stevencch99/f841e53d8cd778da4c013b958542eb30 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function primeString(s) { | |
return !/^(.+)\1+$/.test(s) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment