OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
Prime(5)=11 and (1*1) + (1+1) = 3 so a(5) = 3.
Prime(10)=29 and (2*9) + (2+9) = 29 so a(10) = 29.
MATHEMATICA
Table[Plus @@ IntegerDigits[Prime[n]] + Times @@ IntegerDigits[Prime[n]], {n, 80}] (* Bruno Berselli, Feb 12 2015 *)
dsdp[n_]:=Module[{idpn=IntegerDigits[Prime[n]]}, Total[idpn]+Times@@idpn]; dsdp/@Range[70] (* Harvey P. Dale, Mar 05 2017 *)
PROG
(Magma) [&*Intseq(NthPrime(n))+&+Intseq(NthPrime(n)): n in [1..80]];
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Vincenzo Librandi, Feb 12 2015
STATUS
approved