55
5
The ASCII characters from decimal code 33 to 126 are:
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
Notice that in most fonts, 25 of these characters have "holes" in them: (a genus greater than 0 you might say)
#$%&04689@ABDOPQRabdegopq
The other 68 "unholed" characters are:
!"'()*+,-./12357:;<=>?CEFGHIJKLMNSTUVWXYZ[\]^_`cfhijklmnrstuvwxyz{|}~
Your task is to write the shortest program possible using only the unholed characters that outputs each of the holed characters exactly once in any order.
Since Space, Tab and newlines (Line Feed and/or Carriage Return) are empty space they may appear in your program or its output. They still count towards the number of characters. Other ASCII characters may not be used (and certainly not non-ASCII characters).
Notes
- You do not have to use all of the unholed characters nor only one of each.
- The output may not contain unholed characters.
- The Whitespace language may be used.
- Output should go to stdout or can go to a file. There should be no input.
Bonus: Just for fun, try printing all the unholed characters using the holed characters. I'm skeptical that it can be done in an existing language.
1How did no one ever notice that I forgot
~
?? – Calvin's Hobbies – 2015-03-13T04:50:16.0079
+1 for the title. We do love stuff like this.
– Jacob – 2014-07-29T07:35:20.82368163 characters in jSFuck – edc65 – 2014-07-29T09:37:01.937
1Where is the Perl solution?! – Pierre Arlaud – 2014-07-29T09:48:51.033
4Well, no solution in Haskell or C; if it's a program you want, then you need to spell
main
. – Rhymoid – 2014-07-29T10:22:47.643Can we output unholed characters as well? – C5H8NNaO4 – 2014-07-29T15:33:58.910
@C5H8NNaO4 No. Only the holed and the specified whitespace. – Calvin's Hobbies – 2014-07-29T17:04:41.657
2Bonus can be done using whitespace. – Joshua – 2014-07-29T19:50:22.420
In Perl and Ruby you can wrap the Bash solution in backticks. Otherwise, I think it's impossible (maybe if you allowed the -p flag, but that seems holey.) – histocrat – 2014-07-29T21:20:33.013
Can you output anything but an error without a
p
in Python? – Nick T – 2014-07-31T22:53:33.467