OFFSET
1,1
FORMULA
For n>2: a(n) = A000040(n) + 2 + A010051(A000040(n) + 2) + 1. - Reinhard Zumkeller, Mar 29 2010 [corrected by Georg Fischer, Oct 06 2024]
EXAMPLE
prime(49) = 227, prime(50) = 229, therefore (228=1st, 230=2nd nonprime), 231 = a(49). - Georg Fischer, Oct 06 2024
PROG
(PARI) a(n) = if(n<=2, 8, prime(n) + 2 + isprime(prime(n)+2) + 1) /* Georg Fischer, Oct 06 2024 */
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Mar 06 2010
EXTENSIONS
More terms from Reinhard Zumkeller, Mar 29 2010
a(49), a(52) and a(57) corrected by Georg Fischer, Oct 06 2024
STATUS
approved