Skip to main content
IF you are going to do this, then do it right
Source Link
The Fifth Marshal
  • 6.3k
  • 1
  • 25
  • 44

Actually, 17 bytes (non-competing)

;a¡;lrR(♀ⁿ@♂≈♀*;░

Try it online!

Explanation:

;a¡;lrR(♀ⁿ@♂≈♀*;░
                   initial stack: [b n] (b = base, n = number)
;                  dupe b
 a                 invert stack
  ¡                n as a base-b integer
   ;lrR            dupe, length, range, reverse
       (♀ⁿ         raise b to each power in range
          @♂≈      create list of integers from base-b string
             ♀*    pairwise multiplication
               ;░  filter out zeroes

Actually, 17 bytes (non-competing)

;a¡;lrR(♀ⁿ@♂≈♀*;░

Try it online!

Explanation:

;a¡;lrR(♀ⁿ@♂≈♀*;░
                   initial stack: [b n] (b = base, n = number)
;                  dupe b
 a                 invert stack
  ¡                n as a base-b integer
   ;lrR            dupe, length, range, reverse
       (♀ⁿ         raise b to each power in range
          @♂≈      create list of integers from base-b string
             ♀*    pairwise multiplication
               ;░  filter out zeroes

Actually, 17 bytes

;a¡;lrR(♀ⁿ@♂≈♀*;░

Try it online!

Explanation:

;a¡;lrR(♀ⁿ@♂≈♀*;░
                   initial stack: [b n] (b = base, n = number)
;                  dupe b
 a                 invert stack
  ¡                n as a base-b integer
   ;lrR            dupe, length, range, reverse
       (♀ⁿ         raise b to each power in range
          @♂≈      create list of integers from base-b string
             ♀*    pairwise multiplication
               ;░  filter out zeroes
deleted 73 characters in body
Source Link
emanresu A
  • 44.2k
  • 5
  • 100
  • 240

Actually, 17 bytes (non-competing)

;a¡;lrR(♀ⁿ@♂≈♀*;░

Try it online!

This submission is non-competing because the command was added after this challenge.

Explanation:

;a¡;lrR(♀ⁿ@♂≈♀*;░
                   initial stack: [b n] (b = base, n = number)
;                  dupe b
 a                 invert stack
  ¡                n as a base-b integer
   ;lrR            dupe, length, range, reverse
       (♀ⁿ         raise b to each power in range
          @♂≈      create list of integers from base-b string
             ♀*    pairwise multiplication
               ;░  filter out zeroes

Actually, 17 bytes (non-competing)

;a¡;lrR(♀ⁿ@♂≈♀*;░

Try it online!

This submission is non-competing because the command was added after this challenge.

Explanation:

;a¡;lrR(♀ⁿ@♂≈♀*;░
                   initial stack: [b n] (b = base, n = number)
;                  dupe b
 a                 invert stack
  ¡                n as a base-b integer
   ;lrR            dupe, length, range, reverse
       (♀ⁿ         raise b to each power in range
          @♂≈      create list of integers from base-b string
             ♀*    pairwise multiplication
               ;░  filter out zeroes

Actually, 17 bytes (non-competing)

;a¡;lrR(♀ⁿ@♂≈♀*;░

Try it online!

Explanation:

;a¡;lrR(♀ⁿ@♂≈♀*;░
                   initial stack: [b n] (b = base, n = number)
;                  dupe b
 a                 invert stack
  ¡                n as a base-b integer
   ;lrR            dupe, length, range, reverse
       (♀ⁿ         raise b to each power in range
          @♂≈      create list of integers from base-b string
             ♀*    pairwise multiplication
               ;░  filter out zeroes
Commonmark migration
Source Link

##Actually, 17 bytes (non-competing)

Actually, 17 bytes (non-competing)

;a¡;lrR(♀ⁿ@♂≈♀*;░

Try it online!

This submission is non-competing because the command was added after this challenge.

Explanation:

;a¡;lrR(♀ⁿ@♂≈♀*;░
                   initial stack: [b n] (b = base, n = number)
;                  dupe b
 a                 invert stack
  ¡                n as a base-b integer
   ;lrR            dupe, length, range, reverse
       (♀ⁿ         raise b to each power in range
          @♂≈      create list of integers from base-b string
             ♀*    pairwise multiplication
               ;░  filter out zeroes

##Actually, 17 bytes (non-competing)

;a¡;lrR(♀ⁿ@♂≈♀*;░

Try it online!

This submission is non-competing because the command was added after this challenge.

Explanation:

;a¡;lrR(♀ⁿ@♂≈♀*;░
                   initial stack: [b n] (b = base, n = number)
;                  dupe b
 a                 invert stack
  ¡                n as a base-b integer
   ;lrR            dupe, length, range, reverse
       (♀ⁿ         raise b to each power in range
          @♂≈      create list of integers from base-b string
             ♀*    pairwise multiplication
               ;░  filter out zeroes

Actually, 17 bytes (non-competing)

;a¡;lrR(♀ⁿ@♂≈♀*;░

Try it online!

This submission is non-competing because the command was added after this challenge.

Explanation:

;a¡;lrR(♀ⁿ@♂≈♀*;░
                   initial stack: [b n] (b = base, n = number)
;                  dupe b
 a                 invert stack
  ¡                n as a base-b integer
   ;lrR            dupe, length, range, reverse
       (♀ⁿ         raise b to each power in range
          @♂≈      create list of integers from base-b string
             ♀*    pairwise multiplication
               ;░  filter out zeroes
Source Link
user45941
user45941
Loading