A377286 Numbers k such that there are no prime-powers between prime(k)+1 and prime(k+1)-1.
1, 3, 5, 7, 8, 10, 12, 13, 14, 16, 17, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 32, 33, 34, 35, 36, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 69, 70, 71, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82
Offset: 1
Keywords
Examples
Primes 18 and 19 are 61 and 67, and the interval (62, 63, 64, 65, 66) contains the prime-power 64, so 18 is not in the sequence.
Crossrefs
Programs
-
Mathematica
Select[Range[100], Length[Select[Range[Prime[#]+1,Prime[#+1]-1],PrimePowerQ]]==0&]
-
Python
from itertools import count, islice from sympy import factorint, nextprime def A377286_gen(): # generator of terms p, q, k = 2, 3, 1 for k in count(1): if all(len(factorint(i))>1 for i in range(p+1,q)): yield k p, q = q, nextprime(q) A377286_list = list(islice(A377286_gen(),66)) # Chai Wah Wu, Oct 27 2024