OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..901
MATHEMATICA
g[ n_Integer ] := (k = n + PrimePi[ n ] + 1; While[ k - PrimePi[ k ] - 1, k++ ]; k); NestList[ g, 5, 45 ]
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved