OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
prime(4)=7, prime(3)=5; 7^2+2*5=59, a prime. Hence 59 is a term.
MAPLE
count:= 0: q:= 2: R:= NULL:
while count < 100 do
p:= q; q:= nextprime(q);
v:= q^2 + 2*p;
if isprime(v) then count:= count+1; R:= R, v; fi;
od:
R; # Robert Israel, Aug 22 2023
MATHEMATICA
list = {}; Do[m = Prime[k]^2 + 2*Prime[k - 1]; If[PrimeQ[m], AppendTo[list, m]], {k, 2, 300}]; list (* Vaclav Kotesovec, Feb 14 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Avik Roy (avik_3.1416(AT)yahoo.co.in), Jan 28 2009
EXTENSIONS
More terms from Vaclav Kotesovec, Feb 14 2019
Changed offset to 1 by Vaclav Kotesovec, Feb 14 2019
STATUS
approved