OFFSET
1,7
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(7) = 3 because there are 3 such primes:
1*6 + 7 = 13,
2*5 + 7 = 17,
3*4 + 7 = 19.
MAPLE
f:= proc(n) local k;
nops(select(isprime, [seq(k*(n-k)+n, k=1..floor(n/2))]))
end proc:
map(f, [$1..100]);
PROG
(PARI) a(n) = vecsum(apply(isprime, Set(vector(n-1, k, k*(n-k)+n)))); \\ Michel Marcus, Jul 18 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Jul 16 2022
STATUS
approved