login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A224961 a(n) = number of primes of the form p * q + 2 where p is the prime(n) and q is any prime < p. 0
0, 0, 1, 2, 1, 2, 2, 3, 3, 2, 1, 4, 0, 4, 4, 4, 5, 4, 4, 3, 2, 4, 4, 3, 5, 3, 4, 4, 6, 4, 7, 4, 4, 7, 5, 5, 6, 5, 6, 8, 5, 7, 7, 6, 3, 9, 5, 8, 5, 8, 7, 10, 9, 7, 8, 8, 5, 8, 8, 9, 8, 8, 10, 7, 11, 13, 8, 10, 10, 10, 11, 9, 12, 9, 13, 11, 9, 12, 7, 11 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
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
Sequence in context: A262446 A205147 A319447 * A358023 A056812 A210721
KEYWORD
nonn
AUTHOR
Jayanta Basu, Apr 21 2013
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 5 11:44 EDT 2024. Contains 372275 sequences. (Running on oeis4.)