Legendre prime counting function: Difference between revisions
→Iterative, partial sieving: Changed 2 variable names to align with V of which it is a translation.
(→Iterative, partial sieving: Changed two variable names to align with V of which it is a translation.) |
(→Iterative, partial sieving: Changed 2 variable names to align with V of which it is a translation.) |
||
Line 3,314:
var nri = 0
for (ori in 0...rilmt) {
var
var
if ((cullbuf[
var d =
var t = (d <= rtlmt) ? larges[smalls[d >> 1] - nbps] :
smalls[half.call(Int.quo(n, d))]
larges[nri] = larges[ori] - t + nbps
roughs[nri] =
nri = nri + 1
}
|