OFFSET
1,1
COMMENTS
a(n) >= A046864(n). - Michel Marcus, Nov 01 2015
LINKS
Chris Caldwell and G. L. Honaker, Jr., Prime curio for 8999
EXAMPLE
E.g. a(7)=89 because 8+9=17 and 17 is the 7th prime.
PROG
(PARI) a(n) = {my(k=2); my(p=prime(n)); while((sumdigits(k) != prime(n)), k=nextprime(k+1)); k; } \\ Michel Marcus, Nov 01 2015
CROSSREFS
KEYWORD
base,nonn
AUTHOR
G. L. Honaker, Jr., Apr 24 2000
EXTENSIONS
More terms from Kok Seng Chua (chuaks(AT)ihpc.nus.edu.sg), May 31 2000
Edited and extended by Robert G. Wilson v, Feb 26 2002
STATUS
approved