OFFSET
1,1
EXAMPLE
After 13 the next prime power is 16, which is not prime, so 13 is not in the sequence.
After 19 the next prime power is 23, which is prime, so 19 is in the sequence.
MATHEMATICA
nextpripow[n_]:=NestWhile[#1+1&, n+1, !PrimePowerQ[#1]&];
Select[Range[100], PrimeQ[#]&&PrimeQ[nextpripow[#]]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Dec 24 2024
STATUS
approved