Skip to content

Instantly share code, notes, and snippets.

@284km
Created February 26, 2014 21:17
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 284km/9238775 to your computer and use it in GitHub Desktop.
Save 284km/9238775 to your computer and use it in GitHub Desktop.
require 'prime'
def prime600(n)
(n..n+599).each do |i|
if Prime.prime? i
p i
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment