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!)
A309365 The number of primes between two consecutive lucky numbers, bounds excluded. 2

%I #13 May 14 2023 04:13:57

%S 1,1,0,1,0,2,1,1,0,0,1,1,0,3,0,0,1,0,0,1,1,1,2,2,1,0,0,1,0,2,1,1,0,1,

%T 0,3,1,0,2,0,0,0,0,2,1,0,1,2,0,1,2,2,0,0,1,0,0,3,0,0,0,1,1,1,1,0,3,1,

%U 0,1,1,0,1,0,0,1,3,2,1,0,1,0,0,1,3,0,0

%N The number of primes between two consecutive lucky numbers, bounds excluded.

%H Amiram Eldar, <a href="/A309365/b309365.txt">Table of n, a(n) for n = 1..10000</a>

%e a(1) = 1 because between the first two lucky numbers (1,3) there is one prime (2).

%e a(3) = 0 because between 7 and 9 there are no primes.

%e a(6) = 2 because between 15 and 21 there are two primes (17, 19).

%o (SageMath) [len(prime_range(A000959[i]+1,A000959[i+1])) for i in range(200)]

%Y Cf. A000040, A000959, A309367.

%K nonn

%O 1,6

%A _Hauke Löffler_, Jul 25 2019

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 24 03:08 EDT 2024. Contains 371918 sequences. (Running on oeis4.)