OFFSET
1,2
EXAMPLE
The 125th prime is 691. The least integer with sum of digits 691 is A051885(691) = 8*10^76-1 which is prime. This is the 22nd prime with this property, so a(22)=125.
PROG
(PARI) for(X=1, 300, a=prime(X)%9; b=prime(X)\9; m=(a+1)*10^b-1; if(isprime(m), print([X, prime(X), m]) ) )
CROSSREFS
KEYWORD
more,nonn,base
AUTHOR
Kok Seng Chua (chuaks(AT)ihpc.nus.edu.sg), May 31 2000
EXTENSIONS
More terms from Jason Earls, Jun 22 2001
a(27)-a(30) from Max Alekseyev, Dec 09 2011
STATUS
approved