OFFSET
1,5
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
MATHEMATICA
Table[p = Prime[n]; c = 0; Do[If[PrimeQ[p*Prime[i] - 2], c = c + 1], {i, n - 1}]; c, {n, 82}]
Table[With[{pr=Prime[Range[n]]}, Count[Most[pr]Last[pr]-2, _?PrimeQ]], {n, 90}] (* Harvey P. Dale, Jul 19 2020 *)
PROG
(Haskell)
a210481 n = sum [a010051' $ p * q - 2 |
let p = a000040 n, q <- takeWhile (< p) a000040_list]
-- Reinhard Zumkeller, Jul 30 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Jayanta Basu, Apr 18 2013
STATUS
approved