My Octopress Blog

A blogging framework for hackers.

Syntax Highlighting

This is only a test

Discover if a number is primeSource Article
1
2
3
4
5
class Fixnum
  def prime?
    ('1' * self) !~ /^1?$|^(11+?)\1+$/
  end
end

Now here is a java code

Sample codeting tong
1
2
3
4
5
public class MyClass {
       public static void main(String[] args) {
                System.out.println("Hello World!!");
       }
}

gist