Somehow this does not print anything at all. It doesn't give me an error message. Pls halp
local x = 2 --x is 2
local msg = "A" --msg is A
local msgbyte = string.byte(msg)--msgbyte is 65
for i = 0, 7 do --All exponents of 2 in the basic binary notation.
x = x^i --Get the i'th power of x
if msgbyte/x == math.floor(1) then --if 65 divided by 64 is about 1, then
print(i) --print the exponent, or the iteration
end
x = 2 --Set x back to 2 for the next iteration
end
