OFFSET
1,1
COMMENTS
Conjecture: sequence is infinite.
The generalized Dickson conjecture implies, for example, that there are infinitely many primes p for which p+4, p+6 and p*(p+4)+2*(p+6) = p^2+6*p+12 are prime. - Robert Israel, Mar 22 2021
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
3*5+2*7 = 29 which is prime and so is a(1).
5*7+2*11 = 57 which is composite and so not in the sequence.
MAPLE
R:= NULL: count:= 0: q:= 2: r:= 3;
while count < 100 do
p:= q; q:= r; r:=nextprime(r);
x:= p*q+2*r;
if isprime(x) then
count:= count+1; R:= R, x;
fi
od:
R; # Robert Israel, Mar 22 2021
MATHEMATICA
Select[#1*#2 + 2*#3 & @@@ Partition[Select[Range[2000], PrimeQ], 3, 1], PrimeQ] (* Amiram Eldar, Feb 16 2021 *)
PROG
(PARI) genit(maxx)={p=List(); forprime(x=3, maxx, q=nextprime(x+1); w=x*q+2*nextprime(q+1); if(isprime(w), listput(p, w))); p; }
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Bill McEachen, Feb 14 2021
STATUS
approved