Skip to main content
edited body
Source Link
chunes
  • 25.5k
  • 3
  • 22
  • 53

Arturo, 34 32 bytes

$=>[i:1chunk&=>[2i'i+1ceil log]]

Try it!

Explanation

$=>[]        ; a function where input is assigned to &
i:21          ; assign 21 to i
chunk&=>[]   ; split input by...
2i ceil log  ; bit length of i
'i+1         ; increment i

Arturo, 34 32 bytes

$=>[i:1chunk&=>[2i'i+1ceil log]]

Try it!

Explanation

$=>[]        ; a function where input is assigned to &
i:2          ; assign 2 to i
chunk&=>[]   ; split input by...
2i ceil log  ; bit length of i
'i+1         ; increment i

Arturo, 34 32 bytes

$=>[i:1chunk&=>[2i'i+1ceil log]]

Try it!

Explanation

$=>[]        ; a function where input is assigned to &
i:1          ; assign 1 to i
chunk&=>[]   ; split input by...
2i ceil log  ; bit length of i
'i+1         ; increment i
-2
Source Link
chunes
  • 25.5k
  • 3
  • 22
  • 53

Arturo, 3434 32 bytes

$=>[i:2chunk&=>[ceil log i1chunk&=>[2i'i+1ceil 2'i+1]]log]]

Try it!Try it!

Explanation

$=>[]         ; a function where input is assigned to &
i:2           ; assign 2 to i
chunk&=>[]    ; split input by...
2i ceil log i 2  ; bit length of i
'i+1          ; increment i

Arturo, 34 bytes

$=>[i:2chunk&=>[ceil log i 2'i+1]]

Try it!

Explanation

$=>[]         ; a function where input is assigned to &
i:2           ; assign 2 to i
chunk&=>[]    ; split input by...
ceil log i 2  ; bit length of i
'i+1          ; increment i

Arturo, 34 32 bytes

$=>[i:1chunk&=>[2i'i+1ceil log]]

Try it!

Explanation

$=>[]        ; a function where input is assigned to &
i:2          ; assign 2 to i
chunk&=>[]   ; split input by...
2i ceil log  ; bit length of i
'i+1         ; increment i
Source Link
chunes
  • 25.5k
  • 3
  • 22
  • 53

Arturo, 34 bytes

$=>[i:2chunk&=>[ceil log i 2'i+1]]

Try it!

Explanation

$=>[]         ; a function where input is assigned to &
i:2           ; assign 2 to i
chunk&=>[]    ; split input by...
ceil log i 2  ; bit length of i
'i+1          ; increment i