Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: simple
Fetching contributors…

Cannot retrieve contributors at this time

8 lines (6 sloc) 0.113 kB
def prime?(number)
2.upto(Math.sqrt(number).to_i) do |d|
return false if number % d == 0
end
true
end
Jump to Line
Something went wrong with that request. Please try again.