main.lua
1
2
3
4
5
6
7
8
9
10
11
c = 100000;
s = '';
print('Generating string...');
for i = 1,c do
  if i % 10000 == 0 then
    print(100 * i / c .. '%');
  end;
  s = s .. i;
end;
print('Length = ' .. string.len(s));
print(string.sub(s, -50));
Lua 5.1 Copyright (C) 1994-2006 Lua.org, PUC-Rio [GCC 4.2.1 (LLVM, Emscripten 1.5)] on linux2