Binary is hacked!

11 replies [Last post]
gl_itch
Offline
Neophyte
Joined: 2010/03/24

Binary is setup as 0’s and 1’s and there are quite a few encodings that beat binary(machine language)…
256 128 64 32 16 8 4 2 1
0 = .
1 = .5 = 2 = 1
1 0 = 5
1 1 = 5.5 = 52 = 26 = 13
1 0 0 = 50 = 25
1 0 1 = 50.5 = 502 = 251
1 1 0 = 55
1 1 1 = 55.5 = 552 = 69
1 0 0 0 = 500 = 250 = 125
1 0 0 1 = 500.5 = 5002 = 2501
1 0 1 0 = 505
1 0 1 1 = 505.5 = 5052 = 2526
1 1 0 0 = 550 = 275
1 1 0 1 = 550.5 = 5502 = 2751

When .5 is replaced with 2 keep halving number until prime without turning number into a decimal for a faster encoding with the 0-9 numeral system. So basically half all the numbers until the next half becomes a decimal I.e. being prime.
This saves in space approximately 98 numerals per 100 places compared to machines language.
Justin Nathans
[email protected]