OFFSET
1,4
EXAMPLE
Of composites between the 24th and 25th primes (89, 97), the least prime divisors are {2,7,2,3,2,5,2}.
The largest of these is 7. This means that pi(7)=4 steps in prime sieving are required to sweep out all composites between 89 and 97: {90,92,94,96}, {93}, {95}, and {91} were excluded in the 1st, 2nd, 3rd, and 4th steps, respectively.
So a(24)=4.
MATHEMATICA
ffi[x_] := Flatten[FactorInteger[x]] lf[x_] := Length[FactorInteger[x]] ba[x_] := Table[Part[ffi[x], 2*w-1], {w, 1, lf[x]}] mi[x_] := Min[ba[x]] Table[PrimePi[Max[Table[mi[ba[w]], {w, Prime[j]+1, -1+Prime[j+1]}]]], {j, 1, 30}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, May 14 2003
STATUS
approved