Created
October 11, 2012 15:36
-
-
Save ox/3873264 to your computer and use it in GitHub Desktop.
Find primes, but using the ruby stdlib
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'prime' | |
100.times { |n| puts n if n.prime? } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment