Result

WA

Code [DL]

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

stdin

00100110
00011001
00110110
00011011
01010000
10011101
01011011
00010010
01101001
00001011
00101101
00110011
00110111
01101001
00000011
01010100
11001010
11010010
00111001
01100110
00000001
00011100
11001101
01111011
11100111
00000000
11010101
11100011
01000010
11111101
10101110
00001111
01111000
10111110
11000110
10011001
10001000
01010101
00111110
00001100
10101011
10011111
10000000
00000110
00010101
00100100
11001100
00100100
01001110
00001010

stdout

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

stderr

strace