OFFSET
1,5
EXAMPLE
For n=5, p=11, there are a(5)=3 solutions: 11-3-1=7, 11-5-1=5, and 11-7-1=3.
MATHEMATICA
Table[p = Prime[n]; c = 0; i = 1; While[i < n, If[PrimeQ[p - Prime[i] - 1], c = c + 1]; i++]; c, {n, 69}]
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