Skip to main content
edited body
Source Link
lyxal
  • 34.3k
  • 2
  • 64
  • 141

Vyxal, 13 bytes

0?(»Þ'ZḆ»↜Œ∑∫»Þ([ǒ»Ȯİ∑Ṡ

Try it Online!Try it Online!

A port of the 05AB1E answer

Explained

0?(»Þ'ZḆ»↜Œ∑∫»Þ([ǒ»Ȯİ∑Ṡ
0?              # Push 0 followed by the input number
  (             # Input number of times:
   »Þ'ZḆ»»Þ([ǒ»       #     Push the number 433544355
         ↜ŒȮİ     #     And get the indexes corresponding to the numbers in the second last item on the stack
           ∑∫∑Ṡ   #     Sum that list and then the stack

Vyxal, 13 bytes

0?(»Þ'ZḆ»↜Œ∑∫

Try it Online!

A port of the 05AB1E answer

Explained

0?(»Þ'ZḆ»↜Œ∑∫
0?              # Push 0 followed by the input number
  (             # Input number of times:
   »Þ'ZḆ»       #     Push the number 433544355
         ↜Œ     #     And get the indexes corresponding to the numbers in the second last item on the stack
           ∑∫   #     Sum that list and then the stack

Vyxal, 13 bytes

0?(»Þ([ǒ»Ȯİ∑Ṡ

Try it Online!

A port of the 05AB1E answer

Explained

0?(»Þ([ǒ»Ȯİ∑Ṡ
0?              # Push 0 followed by the input number
  (             # Input number of times:
   »Þ([ǒ»       #     Push the number 433544355
         Ȯİ     #     And get the indexes corresponding to the numbers in the second last item on the stack
           ∑Ṡ   #     Sum that list and then the stack
deleted 2 characters in body
Source Link
lyxal
  • 34.3k
  • 2
  • 64
  • 141

Vyxal, 13 bytes

0?(»Þ([Ḇ»↜Œ∑∫»Þ'ZḆ»↜Œ∑∫

Try it Online!Try it Online!

A port of the 05AB1E answer

Explained

0?(»Þ([Ḇ»↜Œ∑∫»Þ'ZḆ»↜Œ∑∫
0?              # Push 0 followed by the input number
  (             # Input number of times:
   »Þ([Ḇ»»Þ'ZḆ»       #     Push the number 433544355
         ↜Œ     #     And get the indexes corresponding to the numbers in the second last item on the stack
           ∑∫   #     Sum that list and then the stack

Vyxal, 13 bytes

0?(»Þ([Ḇ»↜Œ∑∫

Try it Online!

A port of the 05AB1E answer

Explained

0?(»Þ([Ḇ»↜Œ∑∫
0?              # Push 0 followed by the input number
  (             # Input number of times:
   »Þ([Ḇ»       #     Push the number 433544355
         ↜Œ     #     And get the indexes corresponding to the numbers in the second last item on the stack
           ∑∫   #     Sum that list and then the stack

Vyxal, 13 bytes

0?(»Þ'ZḆ»↜Œ∑∫

Try it Online!

A port of the 05AB1E answer

Explained

0?(»Þ'ZḆ»↜Œ∑∫
0?              # Push 0 followed by the input number
  (             # Input number of times:
   »Þ'ZḆ»       #     Push the number 433544355
         ↜Œ     #     And get the indexes corresponding to the numbers in the second last item on the stack
           ∑∫   #     Sum that list and then the stack
Source Link
lyxal
  • 34.3k
  • 2
  • 64
  • 141

Vyxal, 13 bytes

0?(»Þ([Ḇ»↜Œ∑∫

Try it Online!

A port of the 05AB1E answer

Explained

0?(»Þ([Ḇ»↜Œ∑∫
0?              # Push 0 followed by the input number
  (             # Input number of times:
   »Þ([Ḇ»       #     Push the number 433544355
         ↜Œ     #     And get the indexes corresponding to the numbers in the second last item on the stack
           ∑∫   #     Sum that list and then the stack