login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A090123 Integers k such that nextprime(k^5) - prevprime(k^5) = 4. 1
411, 741, 819, 4041, 6165, 6315, 6861, 10281, 11025, 12489, 12579, 13119, 14331, 15225, 16095, 19125, 19881, 19929, 20799, 22461, 24051, 24885, 25815, 25971, 26979, 27075, 29955, 30801, 31641, 32661, 37371, 38361, 39369, 41181, 42681 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
For k=411, k^5 = 11727599043051; nextprime(k^5) - prevprime(k^5) = 11727599043053 - 11727599043049 = 4, so k 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=5; Do[If[Equal[Prime[PrimePi[n^k]+1]-Prime[PrimePi[n^k]], 4], Print[n]], {n, 2, 100000}]
np4Q[n_]:=Module[{c=n^5}, NextPrime[c]-NextPrime[c, -1]==4]; Select[ Range[ 43000], np4Q] (* Harvey P. Dale, Oct 06 2017 *)
PROG
(PARI) isok(n) = (nextprime(n^5+1) - precprime(n^5-1)) == 4; \\ Michel Marcus, May 25 2018
CROSSREFS
Sequence in context: A146075 A212710 A187991 * A055018 A201844 A105211
KEYWORD
nonn
AUTHOR
Labos Elemer, Jan 12 2004
EXTENSIONS
Wrong term 1 removed by Michel Marcus, May 25 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 07:08 EDT 2024. Contains 371698 sequences. (Running on oeis4.)