OFFSET
1,4
EXAMPLE
For n=4, p=7, there are a(4)=2 solutions from 7*3+2=23 and 7*5+2=37.
MATHEMATICA
Table[p = Prime[n]; c = 0; i = 1; While[i < n, If[PrimeQ[p*Prime[i] + 2], c = c + 1]; i++]; c, {n, 80}]
Table[Count[Prime[n]Prime[Range[n-1]]+2, _?PrimeQ], {n, 80}] (* Harvey P. Dale, Feb 28 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jayanta Basu, Apr 21 2013
STATUS
approved