OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 29 is a term because (5*29+2)/3 = 49 = 7^2 where 29 and 7 are prime.
MAPLE
R:= NULL: count:= 0:
q:= 1:
while count < 100 do
q:= nextprime(q);
if member(q mod 5, {2, 3}) then
p := (3*q^2-2)/5;
if isprime(p) then
R:= R, p; count:= count+1
fi
fi
od:
R;
PROG
(PARI) isok(p) = if (isprime(p), my(x=(5*p+2)/3, q); issquare(x, &q) && isprime(q)); \\ Michel Marcus, Sep 25 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Sep 18 2022
STATUS
approved