1,1

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

(PARI) a(n) = {if (n==1, return (2)); p = 3; while(! isprime((prime(n)+p)/2), p = nextprime(p+1)); return (p); } \\ Michel Marcus, Jun 16 2013

Cf. A084704.

Sequence in context: A131971 A321882 A281158 * A001269 A201769 A077276

Adjacent sequences: A100739 A100740 A100741 * A100743 A100744 A100745

easy,nonn,less

David Wasserman, Jan 03 2005

approved