OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..2500
EXAMPLE
a(3) = 77687 is a term because with p = 77687, q = 77689, k = p mod 37 = 24, j = q mod 35 = 24, and p+j = p+k = 77711 and q+j = q+k = 77713 are prime.
MAPLE
filter:= proc(p, q) local k, j;
k:= p mod convert(convert(q, base, 10), `+`);
j:= q mod convert(convert(p, base, 10), `+`);
andmap(isprime, {p+k, q+k, p+j, q+j});
end proc:
q:= 2:
count:= 0: R:= NULL:
while q < 10^7 do
p:= q; q:= nextprime(q);
if filter(p, q) then count:= count+1; R:= R, p; fi
od:
CROSSREFS
KEYWORD
nonn,base
AUTHOR
J. M. Bergot and Robert Israel, Feb 09 2021
STATUS
approved