two kinds of digit by tails

for((;++i<$$;u=0)){
for((j=i;j;u|=1<<j%10,j/=10)){
:
}
(({!,|}(u&=u-1)))||echo $i
}

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

download

return top