Result

WA

Code [DL]

while(1)puts(!rem((bin2dec(fgetl(0))*8+1)^.5,1)>0?1:0)endwhile

stdin

01011011
01001110
11100111
10000001
00010011
11000001
11001010
11111101
11010010
10001000
01000010
10111100
01101001
10001101
00110111
00010101
00101101
11110000
00100000
11110011
10101011
10001010
11100100
00001110
10110101
00011100
10001110
10001001
11001111
10110010
01111000
00100100
00000110
00001010
10010100
00001111
10100110
01001110
00001101
10111110
11110101
00110010
10000010
10011001
00000001
00000111
00000000
11111101
00000011
00110100

stdout

stderr

octave: X11 DISPLAY environment variable not set
octave: disabling GUI features
parse error near line 1 of file /volume/CODE

  syntax error

>>> while(1)puts(!rem((bin2dec(fgetl(0))*8+1)^.5,1)>0?1:0)endwhile
                                                     ^

error: source: error sourcing file '/volume/CODE'
error: execution exception in /volume/CODE

strace