two kinds of digit by twobit

for i=9,1e4 do
c=("").gsub(i,i%10,"")_=c==""or c~=c:sub(-1):rep(#c)or print(i)end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page