OFFSET
1,3
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
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
KEYWORD
nonn
AUTHOR
Alen Skugor (askugor(AT)gmail.com), Aug 30 2008
STATUS
approved