OFFSET
1,4
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
For n=5, p=11, there are a(5)=2 solutions: 11-5+1=7 and 11-7+1=5.
MATHEMATICA
Table[p = Prime[n]; c = 0; i = 1; While[i < n, If[PrimeQ[p - Prime[i] + 1], c = c + 1]; i++]; c, {n, 70}]
Table[Count[Prime[n]-Prime[Range[n-1]]+1, _?PrimeQ], {n, 70}] (* Harvey P. Dale, Jan 08 2015 *)
PROG
(PARI) a(n)=my(p=prime(n), s); forprime(q=2, p-1, s+=isprime(p-q+1)); s \\ Charles R Greathouse IV, Apr 22 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Jayanta Basu, Apr 22 2013
STATUS
approved