Skip to content

Instantly share code, notes, and snippets.

@jamesdaniels
Created March 4, 2011 19:04
Show Gist options
  • Save jamesdaniels/855495 to your computer and use it in GitHub Desktop.
Save jamesdaniels/855495 to your computer and use it in GitHub Desktop.
Nokogiri::HTML(open('http://hackerunderground.com/')).css('#the_puzzle').text.match(/\[(.+)\]/)[1].split.group_by(&:to_i).select{|k,v| v.size > 1}.map(&:first).select(&:prime?).first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment