Skip to content

Instantly share code, notes, and snippets.

@hakobe
Created July 26, 2008 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakobe/2605 to your computer and use it in GitHub Desktop.
Save hakobe/2605 to your computer and use it in GitHub Desktop.
require 'benchmark'
puts Benchmark.measure {
(2..100).select { |n| '_' * n !~ /\A(__+)\1+\z/ }
}
puts ">_<X"
puts ">_<X"
puts ">_<X"
puts ">_<X"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment