OFFSET
1,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10395
Antti Karttunen, Data supplement: n, a(n) computed for n = 1..100000
EXAMPLE
10395 has 32 divisors: [1, 3, 5, 7, 9, 11, 15, 21, 27, 33, 35, 45, 55, 63, 77, 99, 105, 135, 165, 189, 231, 297, 315, 385, 495, 693, 945, 1155, 1485, 2079, 3465, 10395]. When 2 is added to each, as 1+2 = 3, 3+2 = 5, 5+2 = 7, etc, the only sums that are primes are: [3, 5, 7, 11, 13, 17, 23, 29, 37, 47, 79, 101, 107, 137, 167, 191, 233, 317, 947, 1487, 2081, 3467], thus (a10395) = 22.
MATHEMATICA
Array[DivisorSum[#, 1 &, PrimeQ[# + 2] &] &, 105] (* Michael De Vlieger, Jan 04 2019 *)
PROG
(PARI) A322976(n) = sumdiv(n, d, isprime(d+2));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 04 2019
STATUS
approved