Skip to main content
Commonmark migration
Source Link

##Pyke, 6 bytes

Pyke, 6 bytes

OmSsQ@

Try it here!

O      -    input+2
 mS    -   map(range(1,i+1), range(^))
   s   -  sum(^)
    Q@ - ^[input]

0-indexed.

##Pyke, 6 bytes

OmSsQ@

Try it here!

O      -    input+2
 mS    -   map(range(1,i+1), range(^))
   s   -  sum(^)
    Q@ - ^[input]

0-indexed.

Pyke, 6 bytes

OmSsQ@

Try it here!

O      -    input+2
 mS    -   map(range(1,i+1), range(^))
   s   -  sum(^)
    Q@ - ^[input]

0-indexed.

added 4 characters in body
Source Link
Blue
  • 28.6k
  • 8
  • 52
  • 100

##Pyke, 6 bytes

OmSs@OmSsQ@

Try it here!Try it here!

O      -    input+2
 mS    -   map(range(1,i+1), range(^))
   s   -  sum(^)
    @Q@ - ^[input]

0-indexed.

##Pyke, 6 bytes

OmSs@

Try it here!

O     -    input+2
 mS   -   map(range(1,i+1), range(^))
   s  -  sum(^)
    @ - ^[input]

##Pyke, 6 bytes

OmSsQ@

Try it here!

O      -    input+2
 mS    -   map(range(1,i+1), range(^))
   s   -  sum(^)
    Q@ - ^[input]

0-indexed.

Source Link
Blue
  • 28.6k
  • 8
  • 52
  • 100

##Pyke, 6 bytes

OmSs@

Try it here!

O     -    input+2
 mS   -   map(range(1,i+1), range(^))
   s  -  sum(^)
    @ - ^[input]