Re: binary search with reference to append

new topic     » goto parent     » topic index » view thread      » older message » newer message
petelomax said...

I'd never seen this before. Can someone please enlighten me.

That's not how I remember first writing the primes routine. I thought that if the next prime was a small one, a sequential search of the first 'X' would be faster than doing a binary search of a large table. I don't know why a ranged binary search is there.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu