Jump to content

Legendre prime counting function: Difference between revisions

→‎Iterative, partial sieving: Changed two variable names to align with V of which it is a translation.
(→‎{{header|C}}: Aligned with changes to V example of which it is a translation.)
(→‎Iterative, partial sieving: Changed two variable names to align with V of which it is a translation.)
Line 1,174:
nri := 0
for ori := 0; ori < rilmt; ori++ {
qr := int(roughs[ori])
pirci := qr >> 1
if (cullbuf[pirci>>3] & masks[pirci&7]) != 0 {
continue
}
d := qr * bp
t := int64(0)
if d <= rtlmt {
Line 1,187:
}
larges[nri] = larges[ori] - t + int64(nbps)
roughs[nri] = uint32(qr)
nri++
}
9,483

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.