Skip to main content
added 194 characters in body
Source Link
Conor O'Brien
  • 40.4k
  • 3
  • 96
  • 182

Jolf, 17 bytes

pq#-w^88C Li1~560
pq                pad
         _Li1     the input, w/out the first char
        C    ~5   parsed as a base-16 integer (~5 = 16)
    w^88          8 ^ 8 - 1 (the magic number)
   -              subtract the parsed input from said number
  #               convert result to hexadecimal
               60 pad the result with 6 0's

Try it here!, Test suite (Use full run, which now works.)

Jolf, 17 bytes

pq#-w^88C Li1~560
pq                pad
         _Li1     the input, w/out the first char
        C    ~5   parsed as a base-16 integer (~5 = 16)
    w^88          8 ^ 8 - 1 (the magic number)
   -              subtract the parsed input from said number
  #               convert result to hexadecimal
               60 pad the result with 6 0's

Try it here!

Jolf, 17 bytes

pq#-w^88C Li1~560
pq                pad
         _Li1     the input, w/out the first char
        C    ~5   parsed as a base-16 integer (~5 = 16)
    w^88          8 ^ 8 - 1 (the magic number)
   -              subtract the parsed input from said number
  #               convert result to hexadecimal
               60 pad the result with 6 0's

Try it here!, Test suite (Use full run, which now works.)

deleted 9 characters in body
Source Link
Conor O'Brien
  • 40.4k
  • 3
  • 96
  • 182

Jolf, 1817 bytes

pq#-w^~56Cw^88C Li1~560
pq                 pad
          _Li1     the input, w/out the first char
         C    ~5   parsed as a base-16 integer (~5 = 16)
    w^~56w^88          168 ^ 68 - 1 (the magic number)
   -               subtract the parsed input from said number
  #                convert result to hexadecimal
                60 pad the result with 6 0's

Try it here!

Jolf, 18 bytes

pq#-w^~56C Li1~560
pq                 pad
          _Li1     the input, w/out the first char
         C    ~5   parsed as a base-16 integer (~5 = 16)
    w^~56          16 ^ 6 - 1 (the magic number)
   -               subtract the parsed input from said number
  #                convert result to hexadecimal
                60 pad the result with 6 0's

Try it here!

Jolf, 17 bytes

pq#-w^88C Li1~560
pq                pad
         _Li1     the input, w/out the first char
        C    ~5   parsed as a base-16 integer (~5 = 16)
    w^88          8 ^ 8 - 1 (the magic number)
   -              subtract the parsed input from said number
  #               convert result to hexadecimal
               60 pad the result with 6 0's

Try it here!

edited body
Source Link
Conor O'Brien
  • 40.4k
  • 3
  • 96
  • 182

Jolf, 18 bytes

pq#-w^~56C Li1~560
pq                 pad
          _Li1     the input, w/out the first char
         C    ~5   parsed as a base-16 integer (~5 = 16)
    w^~56          16 ^ 6 - 1 (the magic number)
   -               subtract the parsed input from said number
  #                convert result to hexadecimal
pq                60 pad the result with 6 0's

Try it here!

Jolf, 18 bytes

pq#-w^~56C Li1~560
pq                 pad
          _Li1     the input, w/out the first char
         C    ~5   parsed as a base-16 integer (~5 = 16)
    w^~56          16 ^ 6 - 1 (the magic number)
   -               subtract the parsed input from said number
  #                convert result to hexadecimal
pq              60 pad the result with 6 0's

Try it here!

Jolf, 18 bytes

pq#-w^~56C Li1~560
pq                 pad
          _Li1     the input, w/out the first char
         C    ~5   parsed as a base-16 integer (~5 = 16)
    w^~56          16 ^ 6 - 1 (the magic number)
   -               subtract the parsed input from said number
  #                convert result to hexadecimal
                60 pad the result with 6 0's

Try it here!

Source Link
Conor O'Brien
  • 40.4k
  • 3
  • 96
  • 182
Loading