Result

AC

Code [DL]

WITH RECURSIVE m(x,l,r) AS (
SELECT 1, '' 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 != ''

stdin

10111001
01101001
00000011
01101011
00100011
00101101
11010010
01011010
01010000
11010000
10100000
10001000
11100111
00101000
10101010
11100011
01100111
00000110
00001010
11000011
01111000
01001110
10111110
00001100
10101011
00000001
01000110
01011011
00100100
01000010
00110111
00111101
00001111
01101000
11010010
10011100
10000101
00000001
10100001
00110011
00011011
00000000
00010010
10011001
11001011
00011100
01111111
11111101
00010101
01011111

stdout

0
1
1
0
0
1
1
0
0
0
0
1
1
0
0
0
0
1
1
0
1
1
1
0
1
1
0
1
1
1
1
0
1
0
1
0
0
1
0
0
0
1
0
1
0
1
0
1
1
0

stderr

strace