Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

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
  • 45k
  • 4
  • 39
  • 95

#Japt, (削除) 8+2=10 (削除ここまで) 8(削除) 8 (削除ここまで) 6 bytes

ò2_â1Ãxoòâ1 xo

Test it Test 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
  • 45k
  • 4
  • 39
  • 95

#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
  • 45k
  • 4
  • 39
  • 95
Loading
deleted 18 characters in body; added 42 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95
Loading
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95
Loading

AltStyle によって変換されたページ (->オリジナル) /