OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..870
EXAMPLE
a(5) = 9 is a term because A358128(9) = 25 = 5^2 is a square.
MAPLE
f:= proc(n) local p;
p:= 1:
do
p:= nextprime(p);
if isprime(p+4*n) and numtheory:-bigomega(p+2*n) = 2 then return p+2*n fi
od
end proc:
select(t -> issqr(f(t)), [$1..30000]);
PROG
(PARI) isok(k) = my(x=2*k+2); while ((bigomega(x)!=2) || !isprime(x-2*k) || !isprime(x+2*k), x++); issquare(x); \\ Michel Marcus, Oct 31 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Oct 30 2022
STATUS
approved