OFFSET
2,1
COMMENTS
No primes exist for n=1, as (prime(k) + prime(k+1))/2 is between prime(k) and prime(k+1) and so cannot be prime. See the Weisstein link.
LINKS
Eric Weisstein's World of Mathematics, Interprime Numbers
EXAMPLE
For n=2, (prime(2) + prime(2+2))/2 = (3+7)/2 = 5, so a(2)=5.
For n=4, (prime(2) + prime(2+4))/2 = (3+13)/2 = 8, which is not prime, but (prime(3) + prime(3+4))/2 = (5+17)/2 = 11, so a(4)=11.
PROG
(PARI) a(n) = {k=2; while(!isprime(p=(prime(k)+prime(k+n))/2), k++); p}
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Sep 10 2004
EXTENSIONS
Edited by Michael B. Porter, Oct 07 2009
STATUS
approved