A064735 Next prime containing prime(n) in decimal notation.
23, 13, 53, 17, 113, 113, 173, 191, 223, 229, 131, 137, 241, 431, 347, 353, 359, 461, 167, 271, 173, 179, 283, 389, 197, 1013, 1031, 5107, 1091, 2113, 1277, 1319, 1373, 1399, 1493, 1151, 1571, 1163, 3167, 1733, 2179, 1181, 1913, 1193, 1973, 1993, 2111
Offset: 1
Links
- Harry J. Smith, Table of n, a(n) for n=1..1000
Programs
-
PARI
a(n)={ my(q=prime(n), m=10^(logint(q,10)+1)); forprime(p=m, oo, my(x=p); while(x>=q, if(x%m==q, return(p)); x\=10)) } \\ Harry J. Smith, Sep 24 2009
Formula
a(n) = A252629(n) + prime(n). - Zak Seidov, Dec 19 2014