Skip to content

Instantly share code, notes, and snippets.

@user512
Created September 12, 2015 18:55
Show Gist options
  • Save user512/4ff8759ec947928631e7 to your computer and use it in GitHub Desktop.
Save user512/4ff8759ec947928631e7 to your computer and use it in GitHub Desktop.
best question 7
require 'prime'

count = 1
number = 2

until count == 10001
  number += 1
  count += 1 if number.prime?
end

p number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment