OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 65 = 5*13 is a term because 5*13+5+13 = 83, 5*13-(5+13) = 47, 5*13+2*(5+13) = 101 and 5*13-2*(5+13) = 29 are all prime.
MAPLE
filter:= proc(n) local s;
if numtheory:-bigomega(n) <> 2 or issqr(n) then return false fi;
s:= convert( numtheory:-factorset(n), `+`);;
isprime(n+s)
and isprime(n-s)
and isprime(n+2*s) and isprime(n-2*s)
end proc:
select(filter, [seq(i, i=1..10^5, 2)]);
MATHEMATICA
Select[Range[10^5], (f = FactorInteger[#])[[;; , 2]] == {1, 1} && AllTrue[{(p = f[[1, 1]])*(q = f[[2, 1]]) + p + q, p*q - (p + q), p*q + 2*(p + q), p*q - 2*(p + q)}, PrimeQ] &] (* Amiram Eldar, Aug 26 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Aug 26 2022
STATUS
approved