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 Revisions

4 of 6
added 60 characters in body
Shaggy
  • 45k
  • 4
  • 39
  • 95

#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

Shaggy
  • 45k
  • 4
  • 39
  • 95

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