0

Given an integer n output the sum of the first n decimal digits of the fractional part of en.
Example input and outputs:
1 → 7
2 → 11
3 → 13
4 → 23
5 → 14
50 → 230
500 → 2360
5000 → 22819
Built-in functions computing digits of e or evaluating either power series or continued ...