TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Fast prime counting algorithms (Euler #543, 120x faster than sieve)

2 pointsby acganover 5 years ago
I wrote an article documenting my experience solving Project Euler problem 543. It&#x27;s a surprisingly deep problem, and using a specialized algorithm sped up my solution by two orders of magnitude. (Wrote initial draft 12&#x2F;2016, updated 8&#x2F;2019).<p>https:&#x2F;&#x2F;acgan.sh&#x2F;posts&#x2F;2016-12-23-prime-counting.html<p>I&#x27;d love some feedback here - in general I&#x27;m quite surprised this isn&#x27;t a well known technique in many libraries (even amongst my mathy friends).

no comments

no comments