1,2

Table of n, a(n) for n=1..72.

For n = prime 7, nextprime(7+1) = 11 = a(7).

(PARI) f(n) = for(x=1, n, if(isprime(x), y=nextprime(x+1), y=x); print1(y", "))

Sequence in context: A107431 A189827 A023859 * A277897 A082568 A242640

Adjacent sequences: A096454 A096455 A096456 * A096458 A096459 A096460

nonn

Cino Hilliard, Aug 11 2004

approved