Skip to main content
Commonmark migration
Source Link

#Japt, 8+2=10 8 6 bytes

Japt, 8+2=10 8 6 bytes

òâ1 xo

Test it

  • 1 byte saved thanks to ETHproductions.

##Explanation :Implicit input of integer U. ò :Generate an array of integers from 1 to U, inclusive â :Get the divisors of each number, 1 : excluding itself. x :Sum the main array o :by popping the last element from each sub-array. :Implicit output of result

Explanation

    :Implicit input of integer U.
ò   :Generate an array of integers from 1 to U, inclusive
â   :Get the divisors of each number,
1   :  excluding itself.
x   :Sum the main array
o   :by popping the last element from each sub-array.
    :Implicit output of result

#Japt, 8+2=10 8 6 bytes

òâ1 xo

Test it

  • 1 byte saved thanks to ETHproductions.

##Explanation :Implicit input of integer U. ò :Generate an array of integers from 1 to U, inclusive â :Get the divisors of each number, 1 : excluding itself. x :Sum the main array o :by popping the last element from each sub-array. :Implicit output of result

Japt, 8+2=10 8 6 bytes

òâ1 xo

Test it

  • 1 byte saved thanks to ETHproductions.

Explanation

    :Implicit input of integer U.
ò   :Generate an array of integers from 1 to U, inclusive
â   :Get the divisors of each number,
1   :  excluding itself.
x   :Sum the main array
o   :by popping the last element from each sub-array.
    :Implicit output of result
deleted 82 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

#Japt, 8+2=10 88 6 bytes

ò2_â1Ãxoòâ1 xo

Test itTest it

  • 1 byte saved thanks to ETHproductions.

##Explanation :Implicit input of integer U. ò2 ò :Generate an array of integers from 21 to U, inclusive _ :Passing each number through a function that returns... â : theGet the divisors of theeach number, 1 : excluding itself. Ã :End function. x :Sum the main array o :by popping the last element from each sub-array. :Implicit output of result

#Japt, 8+2=10 8 bytes

ò2_â1Ãxo

Test it

  • 1 byte saved thanks to ETHproductions.

##Explanation :Implicit input of integer U. ò2 :Generate an array of integers from 2 to U, inclusive _ :Passing each number through a function that returns... â : the divisors of the number, 1 : excluding itself. Ã :End function. x :Sum the main array o :by popping the last element from each sub-array. :Implicit output of result

#Japt, 8+2=10 8 6 bytes

òâ1 xo

Test it

  • 1 byte saved thanks to ETHproductions.

##Explanation :Implicit input of integer U. ò :Generate an array of integers from 1 to U, inclusive â :Get the divisors of each number, 1 : excluding itself. x :Sum the main array o :by popping the last element from each sub-array. :Implicit output of result

added 60 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

#Japt#Japt, 8+2=10 8 bytes

ò2_â1Ãxo

Test it

  • 1 byte saved thanks to ETHproductions.

##Explanation :Implicit input of integer U. ò2 :Generate an array of integers from 2 to U, inclusive _ :Passing each number through a function that returns... â : the divisors of the number, 1 : excluding itself. Ã :End function. x :Sum the main array o :by popping the last element from each sub-array. :Implicit output of result

#Japt, 8+2=10 8 bytes

ò2_â1Ãxo

Test it

  • 1 byte saved thanks to ETHproductions.

##Explanation :Implicit input of integer U. ò2 :Generate an array of integers from 2 to U, inclusive _ :Passing each number through a function that returns... â : the divisors of the number, 1 : excluding itself. Ã :End function. x :Sum the main array o :by popping the last element from each sub-array. :Implicit output of result

#Japt, 8+2=10 8 bytes

ò2_â1Ãxo

Test it

  • 1 byte saved thanks to ETHproductions.

##Explanation :Implicit input of integer U. ò2 :Generate an array of integers from 2 to U, inclusive _ :Passing each number through a function that returns... â : the divisors of the number, 1 : excluding itself. Ã :End function. x :Sum the main array o :by popping the last element from each sub-array. :Implicit output of result

added 395 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94
Loading
deleted 18 characters in body; added 42 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94
Loading
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94
Loading