Brainf*ck, 9898 77
Shorter algorithm (kinda77): here is a newer
+>,>-<[>>[->]++[-<+]-<-]++++++++[->++++++<]>+[->+>+>+>+>+>+>+>+<<<<<<<<]>[.>]
This one can only handle 8bit integers.
The algorithm based onworks by using a binary counter someone else built that takes input andwhich is actually very short (one increment is >[->]++[-<+]-<-
which then lays out the bits across. The issue is that it is difficult to print out all of the cells startingbits
That last algorithm can be adapted to fit any number of bits at the pointerexpense of bytes. the problem is idk how i would outputTo be able to deal with N bit integers, it requires 53+3*N bytes to encode. any ideas?
examples:
(1 bit) +>,>-<[>>[->]++[-<+]-<-]>+>]++++++++[->++++++<]>+[->+<]>[.>]
(2 bit) +>,>-<[>>[->]++[-<+]-<-]++++++++[->++++++<]>+[->+>+<<]>[.>]
(3 bit) +>,>-<[>>[->]++[-<+]-<-]++++++++[->++++++<]>+[->+>+>+<<<]>[.>]
etc