A380405 Squares k such that there are no primes between k and the nearest cube that is not k.
9, 25, 121, 32761, 79524, 97344
Offset: 1
Examples
121 is a term because it is a square and there are no primes between 123 and 125, its nearest cube.
Programs
-
Mathematica
b[n_] := If[IntegerQ@Sqrt@n, 0, p = NextPrime[n^3]; q = Ceiling[Sqrt[NextPrime[p, -1]]]; If[q^2 >= p, 0, q]]; Select[Array[b@# &, 1000], # > 0 &]^2
Comments