Hello Octopress

This is a newly post!.

1
[rectangle setX: 10 y: 10 width: 20 height: 20];
Discover if a number is prime
1
2
3
4
5
class Fixnum
  def prime?
    ('1' * self) !~ /^1?$|^(11+?)\1+$/
  end
end

Comments