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!)
A256468 Number of primes between prime(n)^2 and prime(n)*prime(n+1). 6
1, 2, 2, 6, 4, 8, 5, 12, 22, 8, 27, 21, 11, 23, 38, 36, 16, 43, 31, 15, 52, 36, 52, 75, 45, 22, 42, 19, 48, 160, 47, 81, 22, 141, 26, 90, 89, 65, 102, 96, 40, 180, 40, 73, 38, 227, 227, 85, 44, 85, 129, 43, 216, 133, 140, 137, 45, 147, 105, 46, 260, 354, 115, 52, 108, 386, 165, 283, 64 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = A256447(n)-1.
a(n) = A050216(n) - A256469(n).
a(n) = A256469(n) - A256470(n).
MATHEMATICA
Table[Abs@ Subtract[PrimePi[Prime[n]^2], PrimePi[Prime[n] Prime[n + 1]]], {n, 69}] (* Michael De Vlieger, Mar 30 2015 *)
PROG
(PARI)
allocatemem(234567890);
default(primelimit, 4294965247);
A256468(n) = (primepi(prime(n)*prime(n+1)) - primepi(prime(n)^2));
for(n=1, 6542, write("b256468.txt", n, " ", A256468(n)));
(Scheme) (define (A256468 n) (let* ((p (A000040 n)) (p2 (* p p))) (let loop ((s 0) (k (* p (A000040 (+ 1 n))))) (cond ((= k p2) s) (else (loop (+ s (if (prime? k) 1 0)) (- k 1)))))))
CROSSREFS
One less than A256447.
Sequence in context: A074911 A174222 A071059 * A061108 A284918 A053213
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 30 2015
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 April 29 05:57 EDT 2024. Contains 372097 sequences. (Running on oeis4.)