Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by bloak

4 months ago

Of course, another way of making this a more efficient encoding would be to take account of the fact that primes tend to be odd: if p is an odd prime then the next prime is one of the (p - 1)/2 values p + 2, p + 4, ..., 2p - 1.

0 comments

bloak

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities