Skip to main content
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

Java 6+, 101 bytes, by RodolverticeJava 6+, 101 bytes, by Rodolvertice

class ou{public static void main(String[]h){for(int t='l'|'s';t>0;t/=2)System.err.append(t+"4"+t);;}} 

Outputs to stderr.

Demo on ideon

I figure out the pattern of the output quite easily:

127 4 127 63 4 63 31 4 31 15 4 15 7 4 7 3 4 3 1 4 1 

This suggests the tokens /=2, for(;;), t+"4"+t, >0. for is taken from short free;.

The number 127, the 4 ' and | also suggests the use of | with 2 char.

The tricky part is to pick out t from the rest of the code (out -> err, println -> append, class t, the remaining part of short free;).

Java 6+, 101 bytes, by Rodolvertice

class ou{public static void main(String[]h){for(int t='l'|'s';t>0;t/=2)System.err.append(t+"4"+t);;}} 

Outputs to stderr.

Demo on ideon

I figure out the pattern of the output quite easily:

127 4 127 63 4 63 31 4 31 15 4 15 7 4 7 3 4 3 1 4 1 

This suggests the tokens /=2, for(;;), t+"4"+t, >0. for is taken from short free;.

The number 127, the 4 ' and | also suggests the use of | with 2 char.

The tricky part is to pick out t from the rest of the code (out -> err, println -> append, class t, the remaining part of short free;).

Java 6+, 101 bytes, by Rodolvertice

class ou{public static void main(String[]h){for(int t='l'|'s';t>0;t/=2)System.err.append(t+"4"+t);;}} 

Outputs to stderr.

Demo on ideon

I figure out the pattern of the output quite easily:

127 4 127 63 4 63 31 4 31 15 4 15 7 4 7 3 4 3 1 4 1 

This suggests the tokens /=2, for(;;), t+"4"+t, >0. for is taken from short free;.

The number 127, the 4 ' and | also suggests the use of | with 2 char.

The tricky part is to pick out t from the rest of the code (out -> err, println -> append, class t, the remaining part of short free;).

Java 6+, 101 bytes, by Rodolvertice

class ou{public static void main(String[]h){for(int t='l'|'s';t>0;t/=2)System.err.append(t+"4"+t);;}} 

Outputs to stderr.

Demo on ideon

I figure out the pattern of the output quite easily:

127 4 127 63 4 63 31 4 31 15 4 15 7 4 7 3 4 3 1 4 1 

This suggests the tokens /=2, for(;;), t+"4"+t, >0. for is taken from short free;.

The number 127, the 4 ' and | also suggests the use of | with 2 char.

The tricky part is to pick out t from the rest of the code (out -> err, println -> append, class t, the remaining part of short free;).