Better HN
topnewbestaskshowjobs
Log inSign up

m_rn

2 karma · joined Jun 23, 2019 (7y ago) · 9 submissions

Submissions

comment 1y ago · link · parent

Implementation of Erdős-Selfridge prime categorization achieving 8.68 million primes per second on standard hardware. Processes all primes from 2 to 15,485,863 (first million primes) in 0.1153 seconds.

Algorithm optimizations: - 210-wheel factorization reduces trial divisions by 77% - Integer-only square root implementation - Hash table prime lookups with linear probing - Bit-packed category storage (4x memory reduction) - Memoization of recursive category computations

Complexity: O(n log m) practical performance vs O(n√m) theoretical bound.

Results match expected Erdős-Selfridge distributions across categories 1-10. Each prime categorization averages ~346 CPU cycles including factorization, hash lookups, and recursive computation.

Code: https://gist.github.com/opsec-ee/bd829c3781bcfaace131628f8f4...

C11 compatible

2.

Near 10M primes/second: Erdős-Selfridge categorization in C(gist.github.com ↗)

1 points · by m_rn · 1y ago · 1 comment

comment 7y ago · link · parent

Thank you all at Cloudflare for your attention to detail. I'm currently rethinking my stance of years believing you were crimeflare. I do hope Verizon responds and everyone can learn from this.

comment 7y ago · link · parent

Perhaps tls v1.3 will help? I've read cloudflare is doing major work to find dns solutions in conjunction with Mozilla encrypting sni, configuration for dnssec and so on.

https://blog.cloudflare.com/encrypted-sni

https://blog.cloudflare.com/encrypt-that-sni-firefox-edition

comment 7y ago · link · parent

cronix for president!

comment 7y ago · link · parent

PIA VPN "mace" seems to be saving me from all the torture.

comment 7y ago · link · parent

I'm with you, it is a nice presentation and will follow it. Yanno' if you could get the ARM version of pfSense on the pi this would eliminate the Huawei modem, Maybe.

comment 7y ago · link · parent

Firefox ext:Canvas blocker crashes on your site.