OFFSET
0,1
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..10000
EXAMPLE
Let s = A286708.
a(0) = 11 since {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31} are primes less than s(1) = 36.
a(1) = 9 since {37, 41, 43, 47, 53, 59, 61, 67, 71} are primes that exceed s(1) but not s(2) = 72.
a(2) = 5 since {73, 79, 83, 89, 97} are primes p such that s(2) < p < s(3), where s(3) = 100.
a(3) = 3 since {101, 103, 107} are primes p such that s(3) < p < s(4), where s(4) = 108, etc.
MATHEMATICA
s = With[{nn = 5000},
Select[Rest@ Union@ Flatten@ Table[a^2*b^3, {b, Surd[nn, 3]}, {a, Sqrt[nn/b^3]}],
Not@*PrimePowerQ]];
{PrimePi[s[[1]]]}~Join~Differences@ Map[PrimePi, s]
CROSSREFS
KEYWORD
nonn,easy,new
AUTHOR
Michael De Vlieger, Dec 10 2024
STATUS
approved