by@cookies146
AC
loop{p (gets.to_s.to_i(2)*8+1)**0.5%2==1?1:0}
11010010 01100111 10001011 00011100 10100010 00000011 10110111 01100011 11111111 10000010 00111010 00000110 10011001 11111101 01011011 10000001 01001110 00000000 10100000 10011001 00001010 01111000 10001000 11111000 01100100 00000110 11100111 00111011 00001100 01110010 00110010 00101101 00000001 01101001 11110101 00001111 11010000 11001000 11100010 01010011 10111110 01100101 01000010 00100100 00010101 10101011 10000111 00110111 10001101 01000101
1 0 0 1 0 1 0 0 0 0 0 1 1 1 1 0 1 1 0 1 1 1 1 0 0 1 1 0 0 0 0 1 1 1 0 1 0 0 0 0 1 0 1 1 1 1 0 1 0 0
Invalid Int32: (ArgumentError) 0x459137: *CallStack::unwind:Array(Pointer(Void)) at ?? 0x46ce1b: to_i32 at /opt/crystal/src/string.cr 418:5 0x46d5a7: to_i at /opt/crystal/src/string.cr 319:5 0x447524: __crystal_main at /volume/CODE 1:9 0x4569c9: main at /opt/crystal/src/main.cr 12:15 0x7fe61d350830: __libc_start_main at ?? 0x446d99: _start at ?? 0x0: ??? at ??