OFFSET
1,1
EXAMPLE
2=prime(1+1)-4^(1-1)=3-1, 3=prime(2+2)-4^(2-1)=7-4, 43=prime(14+3)-4^(3-1)=59-16, 73=prime(21+3)-4^(3-1)=89-16.
PROG
(PARI) is_A182217(p)={isprime(p) || return; my(q=p); for(k=0, 9, p+4^k==(q=nextprime(q+1)) & return(1))} \\ M. F. Hasler, May 20 2012
(PARI) for(n=1, 9999, for(k=1, 9, prime(n+k)-prime(n)==4^(k-1)&!print1(prime(n)", ")&break)) \\ M. F. Hasler, May 20 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Gerasimov Sergey, Apr 19 2012
STATUS
approved