OFFSET
1,2
EXAMPLE
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.
MATHEMATICA
Select[Range[100], Length[Select[Range[Prime[#]+1, Prime[#+1]-1], PrimePowerQ]]==0&]
PROG
(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)
CROSSREFS
For at least one prime-power we have A377057.
For one instead of no prime-powers we have A377287.
For two instead of no prime-powers we have A377288.
A000015 gives the least prime-power >= n.
A031218 gives the greatest prime-power <= n.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Oct 25 2024
STATUS
approved