OFFSET
1,1
LINKS
Amiram Eldar and Zak Seidov, Table of n, a(n) for n = 1..10000
EXAMPLE
n=2 is in the sequence because 3 + 2*5 = 13 and 5 + 2*3 = 11 are primes.
n=3 is in the sequence because 5 + 2*7 = 19 and 7 + 2*5 = 17 are primes.
n=6 is in the sequence because 17 + 2*13 = 43 and 13 + 2*17 = 47 are primes.
PROG
(PARI) isok(n) = my(p=prime(n), q=nextprime(p+1)); isprime(p+2*q) && isprime(2*p+q); \\ Michel Marcus, Jan 06 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, May 03 2014
STATUS
approved
