A380522
Primes p such that between p and the previous prime there exist 2 distinct integers which are a square and a cube, respectively.
Original entry on oeis.org
11, 29, 127, 32771, 79531, 97367
Offset: 1
127 is a term because between prime 127 and previous prime 113 there exists a square 121 and a cube 125.
-
b[n_] := If[IntegerQ@Sqrt@n, 0, p = NextPrime[n^3];
If[Ceiling[Sqrt[NextPrime[p,-1]]]^2 >= p, 0, p]]; Select[Array[b@# &, 1000], # > 0 &]
A380523
Positive cubes k such that there are no primes between k and the nearest square that is not k.
Original entry on oeis.org
8, 27, 125, 32768, 79507, 97336
Offset: 1
125 is a term because it is a cube and there are no primes between 125 and 121, its nearest square.
-
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 &]
A380405
Squares k such that there are no primes between k and the nearest cube that is not k.
Original entry on oeis.org
9, 25, 121, 32761, 79524, 97344
Offset: 1
121 is a term because it is a square and there are no primes between 123 and 125, its nearest cube.
-
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
Showing 1-3 of 3 results.
Comments