The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A143738 Number of twin primes between n and n^2. Only smaller of twins (terms of A001359) are counted. 3
0, 1, 2, 2, 3, 3, 4, 5, 6, 6, 8, 8, 9, 11, 12, 14, 16, 16, 17, 17, 19, 20, 21, 22, 24, 26, 26, 26, 29, 30, 30, 31, 34, 36, 36, 39, 41, 42, 45, 45, 48, 49, 50, 53, 55, 59, 61, 63, 66, 66, 68, 70, 74, 74, 76, 77, 78, 83, 87, 90, 91, 93, 96, 100 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
EXAMPLE
For n = 6, between 6 and 36 the smaller of twin pairs are {11, 17, 29}, so a(6) = 3.
MATHEMATICA
Table[Count[Table[PrimeQ[j] && PrimeQ[j + 2], {j, n, n*n}], True], {n, 1, 100}]
PROG
(Magma) [#[p:p in PrimesInInterval(n, n^2)|IsPrime(p+2)]:n in [1..80]]; // Marius A. Burtea, Dec 20 2019
CROSSREFS
Sequence in context: A113865 A358636 A347609 * A337766 A029071 A117144
KEYWORD
nonn
AUTHOR
Alen Skugor (askugor(AT)gmail.com), Aug 30 2008
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 June 8 09:36 EDT 2024. Contains 373217 sequences. (Running on oeis4.)