JPDev@programming.dev to Programmer Humor@programming.dev · 7 months agoReturns a sorted list in O(1) timeprogramming.devimagemessage-square27fedilinkarrow-up1137arrow-down17
arrow-up1130arrow-down1imageReturns a sorted list in O(1) timeprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 7 months agomessage-square27fedilink
minus-squareitslilith@lemmy.blahaj.zonelinkfedilinkarrow-up7·7 months agoasymptotically this is 100% correct!
minus-squaremumblerfish@lemmy.worldlinkfedilinkarrow-up1·7 months agoWhat would be the accuracy on something like a 64bit unsigned integer?
minus-squareitslilith@lemmy.blahaj.zonelinkfedilinkarrow-up9·7 months agoWolframAlpha estimates PrimePi[2^64-1] to be about 4.15829E17, so about 97.7%
asymptotically this is 100% correct!
What would be the accuracy on something like a 64bit unsigned integer?
WolframAlpha estimates PrimePi[2^64-1] to be about 4.15829E17, so about 97.7%