A380523 Positive cubes k such that there are no primes between k and the nearest square that is not k.
8, 27, 125, 32768, 79507, 97336
Offset: 1
Examples
125 is a term because it is a cube and there are no primes between 125 and 121, its nearest square.
Programs
-
Mathematica
b[n_] := If[IntegerQ@Sqrt@n, 0, p = NextPrime[n^3]; If[Ceiling[Sqrt[NextPrime[p, -1]]]^2 >= p, 0, n^3]]; Select[Array[b@# &, 1000], # > 0 &]
Comments