Skip to content

Instantly share code, notes, and snippets.

@nandokakimoto
Created July 25, 2017 15:19
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 nandokakimoto/16dbb0e7ddc987c20208cccb72051af6 to your computer and use it in GitHub Desktop.
Save nandokakimoto/16dbb0e7ddc987c20208cccb72051af6 to your computer and use it in GitHub Desktop.
require 'prime'
(1..100).map do |i|
Thread.new { Prime.prime?(i) }
end.each(&:join)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment