Skip to content

Instantly share code, notes, and snippets.

@atton
Created March 28, 2013 10:38
Show Gist options
  • Save atton/5262270 to your computer and use it in GitHub Desktop.
Save atton/5262270 to your computer and use it in GitHub Desktop.
ryudai.rb 005 謎の素数
(0..Float::INFINITY).lazy.select{|a| (a % 2 != 0) && (a % 3 != 0)}.take(1000).to_a.last
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment