OFFSET
0,1
COMMENTS
From Ingham (1937) it follows that there is a prime between x^3 and (x+1)^3 if x is sufficiently large: see A060199 for further details. - M. F. Hasler, Nov 09 2020
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 0..10000
A. E. Ingham, On the difference between consecutive primes. Quarterly Journal of Mathematics. Oxford Series. 8 (1) (1937) p. 255-266 (doi:10.1093/qmath/os-8.1.255).
FORMULA
EXAMPLE
a(6)=7 because next prime after 6^3=216 is 223 and 223-216=7.
MATHEMATICA
Array[NextPrime[#] - # &[#^3] &, 90, 0] (* Michael De Vlieger, Nov 12 2020 *)
PROG
(PARI) a(n) = nextprime(n^3) - n^3; \\ Michel Marcus, Oct 10 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Zak Seidov, Aug 29 2006
STATUS
approved