For something i was working on, i needed to print all of the non-dithering web colors. These colors are 6 digit hex strings, prepended with a '#'. each pair of hex digits can either be '00','33','66','99','cc' or 'ff'. This makes 216 combinations (the 'web-safe' palette). First i came up with:
at 111 bytes. not too good. so i took another approach and shortened it to 82 bytes:
but this is still pretty big. can anyone do better?
update: and obviously you have to comply with strict and -w.