Skip to main content
3 of 6
added 395 characters in body
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

#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
  • 43.5k
  • 4
  • 36
  • 94