Skip to content

Instantly share code, notes, and snippets.

@nandokakimoto

nandokakimoto/gil-sample.rb Secret

Created Jul 25, 2017
Embed
What would you like to do?
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
You can’t perform that action at this time.