Skip to content

Instantly share code, notes, and snippets.

@stevencch99
Created May 19, 2019 12:05
Show Gist options
  • Save stevencch99/bb3a689011209ad35e4e6cd33e375542 to your computer and use it in GitHub Desktop.
Save stevencch99/bb3a689011209ad35e4e6cd33e375542 to your computer and use it in GitHub Desktop.
def prime_string(s)
s !~ /^(.+)(\1+)$/
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment