OFFSET
1,13
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
A014574(13) = 180. Four of its divisors yield twin prime pairs when added to 179 and 181, namely 12, 18, 60 and 90, as 179+12=191, 181+12=193, 179+18=197, 181+18=199, 179+50=239, 181+60=241, 179+90=269 and 181+90=271 are prime. Thus a(13)=4.
MAPLE
f:= proc(n)
nops(select(t -> isprime(n+t) and isprime(n+2+t), numtheory:-divisors(n+1)))
end proc:
P:= select(isprime, {seq(i, i=3..50000, 2)}):
TP:= sort(convert(P intersect map(`-`, P, 2), list)):
map(f, TP);
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Dec 29 2019
STATUS
approved