Result

WA

Code [DL]

WITH RECURSIVE m(x,l,r) AS (
SELECT 1, NULL AS l, substr(v, 0) AS r FROM i
UNION ALL
SELECT x + 1, CASE WHEN substr(r,1,8)='00000000' or substr(r,1,8)='00000001' or substr(r,1,8)='00000011' or substr(r,1,8)='00000110' or substr(r,1,8)='00001010' or substr(r,1,8)='00001111' or substr(r,1,8)='00010101' or substr(r,1,8)='00011100' or substr(r,1,8)='00100100' or substr(r,1,8)='00101101' or substr(r,1,8)='00110111' or substr(r,1,8)='01000010' or substr(r,1,8)='01001110' or substr(r,1,8)='01011011' or substr(r,1,8)='01101001' or substr(r,1,8)='01111000' or substr(r,1,8)='10001000' or substr(r,1,8)='10011001' or substr(r,1,8)='10101011' or substr(r,1,8)='10111110' or substr(r,1,8)='11010010' or substr(r,1,8)='11100111' or substr(r,1,8)='11111101' THEN 1 ELSE 0 END AS l, substr(r, 10) AS r
FROM m
WHERE r != ''
)
SELECT l FROM m WHERE l <> NULL

stdin

01101100
01001110
10000000
00001010
01101001
10011001
00101101
10111110
10001101
00010101
01010101
10010010
00000001
00001111
01011011
01100001
10111001
00110111
01111000
10100101
00110001
00000011
01101001
00111011
00110111
00000110
11000001
01000010
01001000
11001010
00011100
00000000
11010010
11100000
11100111
11110000
11111001
01001001
10101011
11101001
10100011
10001000
01110100
10111100
01011101
11000010
11111101
00001100
11111111
00100100

stdout

stderr

strace