OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
For k = 21: k^4 = 194481, q = nextprime(k^4) = 194483, p = prevprime(k^4) = 194479, q - p = 4, so 21 is in the sequence.
MATHEMATICA
pre[x_] := Prime[PrimePi[x]]; nex[x_] := Prime[PrimePi[x]+1]; de[x_] := Prime[PrimePi[x]+1]-Prime[PrimePi[x]]; k=4; Do[If[Equal[Prime[PrimePi[n^k]+1]-Prime[PrimePi[n^k]], 4], Print[n]], {n, 2, 100000}]
PROG
(PARI) is(k) = nextprime(k^4 + 1) - precprime(k^4 - 1) == 4; \\ Amiram Eldar, Jun 09 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jan 12 2004
EXTENSIONS
a(29)-a(49) from Giovanni Resta, May 08 2017
STATUS
approved