Florian Frank wrote:
[...]

For correctness, perhaps even:

> class Integer
>  def prime?

       return false if self < 2

>    not (2..Math.sqrt(self).floor).find { |i| self % i == 0 }
>  end
> end 

-- 
Florian Frank