Skip to main content
copying moved to be in the mod operation
Source Link

Brainfuck, 27 2525 23 bytes

,.[->+>+<<]>[[-[<<]>[>>]<++<]>>>[+[.]>-]]] 

I ran it here

Uses ahere (Uses negative cellcells, get around this by adding a <<< to the beginning)

I used modulus 2 instead of subtracting 48 to differentiate 0 and 1 which cuts down some characters. I also copied and did modulus at the same time.

Old answeranswers:

,.[->+>+<<]>[-[<<]>[.]>-] ,.[->+>+<<]>[-[>>]>[.]<<<-] 

I used mod 2 instead of subtracting 48 to differentiate 0 and 1 which cuts down some characters.

Brainfuck, 27 25 bytes

,.[->+>+<<]>[-[<<]>[.]>-] 

I ran it here

Uses a negative cell, get around this by adding a <

Old answer:

,.[->+>+<<]>[-[>>]>[.]<<<-] 

I used mod 2 instead of subtracting 48 to differentiate 0 and 1 which cuts down some characters.

Brainfuck, 27 25 23 bytes

,.[-[->>]<++<]>>>[+[.]] 

I ran it here (Uses negative cells, get around this by adding a << to the beginning)

I used modulus 2 instead of subtracting 48 to differentiate 0 and 1 which cuts down some characters. I also copied and did modulus at the same time.

Old answers:

,.[->+>+<<]>[-[<<]>[.]>-] ,.[->+>+<<]>[-[>>]>[.]<<<-] 
golfed 2 bytes
Source Link

Brainfuck, 2727 25 bytes

,.[->+>+<<]>[-[>>]>[[<<]>[.]<<<]>-] 

I ran it herehere

Uses a negative cell, get around this by adding a <

Old answer:

,.[->+>+<<]>[-[>>]>[.]<<<-] 

I used mod 2 instead of subtracting 48 to differentiate 0 and 1 which cuts down some characters.

Brainfuck, 27 bytes

,.[->+>+<<]>[-[>>]>[.]<<<-] 

I ran it here

I used mod 2 instead of subtracting 48 to differentiate 0 and 1 which cuts down some characters.

Brainfuck, 27 25 bytes

,.[->+>+<<]>[-[<<]>[.]>-] 

I ran it here

Uses a negative cell, get around this by adding a <

Old answer:

,.[->+>+<<]>[-[>>]>[.]<<<-] 

I used mod 2 instead of subtracting 48 to differentiate 0 and 1 which cuts down some characters.

Source Link

Brainfuck, 27 bytes

,.[->+>+<<]>[-[>>]>[.]<<<-] 

I ran it here

I used mod 2 instead of subtracting 48 to differentiate 0 and 1 which cuts down some characters.