Syntax Highlighting
This is only a test
Discover if a number is primeSource Article1
2
3
4
5
| class Fixnum
def prime?
('1' * self) !~ /^1?$|^(11+?)\1+$/
end
end
|
Now here is a java code
Sample codeting tong1
2
3
4
5
| public class MyClass {
public static void main(String[] args) {
System.out.println("Hello World!!");
}
}
|
gist