local function sepbytes(num)
local t = {};
local byte = 0;
repeat
table.insert(t, 1, bit32.band(bit32.rshift(num, byte), 0xff));
byte = byte + 8
until byte > 24
return table.unpack(t);
end
print(sepbytes(2000));
bG9jYWwgZnVuY3Rpb24gc2VwYnl0ZXMobnVtKQoJbG9jYWwgdCA9IHt9OwoJbG9jYWwgYnl0ZSA9IDA7CglyZXBlYXQKICAgIAl0YWJsZS5pbnNlcnQodCwgMSwgYml0MzIuYmFuZChiaXQzMi5yc2hpZnQobnVtLCBieXRlKSwgMHhmZikpOwogICAgCWJ5dGUgPSBieXRlICsgOAoJdW50aWwgYnl0ZSA+IDI0CglyZXR1cm4gdGFibGUudW5wYWNrKHQpOwplbmQKCnByaW50KHNlcGJ5dGVzKDIwMDApKTs=