OFFSET
1,1
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
The number 12 is neither squarefree nor a prime power but comes between primes 11 and 13.
The number 30 is squarefree, though it comes between primes 29 and 31, it is not in the sequence.
MATHEMATICA
Select[1 + Select[Prime@ Range[100], PrimeQ[# + 2] &], Nor[SquareFreeQ[#], PrimePowerQ[#]] &]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michael De Vlieger, Mar 27 2024
STATUS
approved