Skip to main content
1 of 5
Adám
  • 31.1k
  • 3
  • 124
  • 287

#Dyalog APL, 10 bytes ⍎+≢+(+/⍎¨)

Takes string and returns

(+/⍎¨) the sum of the evaluation of each character (digit)
+
the length of the string
+
the evaluation of the entire string

Adám
  • 31.1k
  • 3
  • 124
  • 287