OFFSET
1,2
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
3 is a term because smallest prime >3 is 5 and 2*5-3=7 is prime.
MATHEMATICA
Select[Range[400], PrimeQ[2*NextPrime[#]-#]&] (* Harvey P. Dale, Jul 02 2018 *)
PROG
(PARI) isok(n) = isprime(2*nextprime(n+1) - n); \\ Michel Marcus, Oct 03 2013
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Zak Seidov, Jul 31 2003
EXTENSIONS
Corrected by Michel Marcus, Oct 03 2013
STATUS
approved