OFFSET
1,1
COMMENTS
There are no other terms < 2*10^30.
EXAMPLE
125 is a term because it is a cube and there are no primes between 125 and 121, its nearest square.
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 &]
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Zhining Yang, Jan 26 2025
STATUS
approved
