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!)
A192360 Numbers k such that number of primes in the range (k-sqrt(k), k) is equal to number of primes in the range (k, k+sqrt(k)). 0

%I #12 Feb 24 2019 21:09:45

%S 1,4,5,6,9,12,15,17,18,19,22,25,30,35,42,51,53,54,59,60,61,64,67,68,

%T 69,72,76,77,78,81,82,83,88,89,92,104,105,106,120,132,133,134,135,136,

%U 143,144,149,150,151,152,153,154,157,161,163,164,165,166

%N Numbers k such that number of primes in the range (k-sqrt(k), k) is equal to number of primes in the range (k, k+sqrt(k)).

%p isA192360 := proc(n) plow := floor(n-sqrt(n)) ; phi := ceil(n+sqrt(n)) ; plow := numtheory[pi](n-1)-numtheory[pi](plow) ; phi := numtheory[pi] (phi-1)-numtheory[pi](n) ; plow = phi ; end proc:

%p for n from 1 to 200 do if isA192360(n) then printf("%d,",n) ; end if; end do: # _R. J. Mathar_, Jul 02 2011

%o (PARI) isA192360(n)=my(s=sqrtint(n));2*primepi(n)-isprime(n)==if(n==s^2,primepi(n-s)+primepi(n+s-1),primepi(n-s-1)+primepi(n+s))

%Y Cf. A188817, A192221.

%K nonn

%O 1,2

%A _Juri-Stepan Gerasimov_, Jun 28 2011

%E 3 removed by _Charles R Greathouse IV_, Jun 29 2011

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 19 05:19 EDT 2024. Contains 371782 sequences. (Running on oeis4.)