0
Weighting primes
code-golfnumbersprimes
The weight of a number is the sum of its digits plus the number of its digits in the base 10 representation of the number. E.g. weight(139) = (1 + 3 + 9) + 3. (This is a made-up definition by me.)
You should write a program or function which when provide...