OFFSET
1,1
LINKS
Zak Seidov, Table of n, a(n) for n = 1..1000
PROG
(PARI) a(n) = {pn = prime(n); forprime(p = pn, , if (((p+2) % pn) == 0, return (p)); ); } \\ Michel Marcus, Oct 29 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 28 2014
STATUS
approved