frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Orthogonal Wheel Sieve: Linear Scalability from 10^7 to 300B Primes

https://github.com/Claugo/segmented-sieve-wheel-m60-7
1•claugo•1h ago

Comments

claugo•1h ago
I've implemented a segmented wheel sieve with orthogonal prefilter (mod-60 base + mod-7 independent extension) that demonstrates unusual linear performance scaling.

*Benchmark Results (C++, i7-6700K, consumer hardware):*

| Range | Time | Primes Found | Density | |-------|------|--------------|---------| | 10^7 | 1.5ms | 664K | 6.64% | | 10^8 | 18ms | 5.7M | 5.76% | | 10^9 | 212ms | 50.8M | 5.08% | | 10^10 | 3.12s | 455M | 4.55% | | 10^11 | 106.6s | 4.1B | 4.12% | | 3×10^11 | 484s | 11.8B | 3.95% |

*Key Observation:* Nearly perfect linear O(n) scalability across 4 orders of magnitude. All results validated with Miller-Rabin primality testing (100 iterations, zero false positives).

*Why This Matters:* Traditional segmented sieves show sublinear but not linear performance at extreme scales. The orthogonal extension approach (mod-60 + mod-7) appears to avoid the structural overhead that typically emerges at billion+ ranges.

*Open Research Questions:* 1. Does linear scaling continue beyond 10^12? 2. How do other languages (Rust, Java, Julia) perform on the same algorithm? 3. Where are CPU/memory bottlenecks on modern architectures? 4. What's the theoretical limit of orthogonal extension beyond mod-7? 5. Can SIMD/GPU acceleration further improve performance?

*Reference Implementation:* Full C++ source, benchmark methodology, and validation suite available. MIT licensed, contributions welcome.

claugo•1h ago
I'm the author. Some additional context:

*Performance Notes:* - Measured on Intel i7-6700K (consumer hardware, 2015) - Single-threaded, no SIMD optimizations yet - C++17, compiled with /O3 and /arch:AVX2 - Times include full validation pipeline

*Validation Methodology:* - Miller-Rabin: 100 iterations per candidate - Sample range: 10^7 to 3×10^11 - Zero false positives observed across all ranges

*Why Linear Scaling?* The orthogonal approach (mod-60 + mod-7) maintains constant structural overhead as range increases, unlike traditional wheels which expand geometrically.

*What I'm Most Curious About:* 1. Rust/Julia implementations - can they match C++? 2. SIMD potential - AVX-512 should help significantly 3. GPU feasibility - is the algorithm parallelizable? 4. Theoretical bounds - what's the limit of orthogonal extension?

Contributions, feedback, and collaboration welcome. Full source on GitHub, MIT licensed.

The Data Project – data journalism sites built from public government datasets

https://www.thedataproject.ai
1•kianoconnor•2m ago•0 comments

Altman says OpenAI agrees with Anthropic's red lines in Pentagon dispute

https://thehill.com/policy/technology/5758898-altman-backs-anthropic-pentagon-stand/
1•rectang•2m ago•0 comments

Federal agencies may have a Claude problem now

https://www.axios.com/2026/02/27/claude-anthropic-trump-government-agencies
1•toomuchtodo•3m ago•1 comments

Show HN: I built a site where you hire yourself instead of applying for jobs

https://hired.wtf
1•apwn•5m ago•1 comments

Show HN: Rapidly build efficient sites with Neat, the minimalist CSS framework

https://github.com/codazoda/neatcss
1•codazoda•8m ago•0 comments

Need ArXiv endorsement.. CS. Multiagent-Systems [pdf]

https://www.socialcompute.dev/deterministic_control_paper.pdf
1•dev_marcospimi•9m ago•0 comments

Show HN: XDP firewall that auto-syncs open ports – built after my VPS got DDoS'd

https://github.com/Kookiejarz/basic_xdp
1•kennethhh•9m ago•0 comments

Show HN: Taskdog – Terminal-based task manager with schedule optimization

https://github.com/Kohei-Wada/taskdog
1•kohei-wada•11m ago•0 comments

Show HN: AgentGate – Stake-Gated Action Microservice for AI Agents

https://github.com/selfradiance/agentgate
1•selfradiance•11m ago•0 comments

Show HN: Market Digest: Self-hosted market analysis and Telegram

https://github.com/mutaaf/MarketDigest
1•mutaaf•20m ago•1 comments

Zugunruhe, and what makes things worth doing

https://www.nathanzhao.cc/zugunruhe
2•nzhaa•21m ago•0 comments

Perplexity Computer: What I Built in One Night (Review and Examples)

https://karozieminski.substack.com/p/perplexity-computer-review-examples-guide
1•Lunaboo•24m ago•0 comments

Ask HN: Do you enforce Prettier in all Next.js projects?

1•digi_wares•25m ago•0 comments

Show HN: Notemac++ – A Notepad++-inspired code editor for macOS and the web

https://github.com/sergioadevita/notemac-plus-plus
2•sergioadevita•25m ago•0 comments

Technical Recruiter in 2026

https://anangsha.substack.com/p/technical-recruiting-in-2026-how
1•monolikma•26m ago•0 comments

Lee Kuan Yew – Resources

https://advaypal.com/writes/lky_resources/
2•advaypal•27m ago•0 comments

Neil Sedaka, Singing Craftsman of Memorable Pop Songs, Dies at 86

https://www.nytimes.com/2026/02/27/arts/music/neil-sedaka-dead.html
2•bookofjoe•28m ago•0 comments

Amazon deal with OpenAI shakes up AI landscape

https://www.axios.com/2026/02/27/ai-amazon-openai-chips
1•doener•29m ago•1 comments

Emuko: Fast RISC-V emulator written in Rust, boots Linux

https://github.com/wkoszek/emuko
3•felipap•29m ago•0 comments

GAIT: A Voluntary Transparency Framework for AI Use in Games

https://hypervisor.studio/blog/introducing-gait-game-ai-transparency.html
2•jamesjennings•30m ago•0 comments

Moltler the Skills Framework for Elasticsearch

https://hub.moltler.dev/
1•bahaazarmi•32m ago•0 comments

Should Social Media Algorithms Have Age-Based Safeguards for Over-60s?

https://petition.parliament.uk/petitions/758659
2•lalessandro2•32m ago•0 comments

Ask HN: Can our bootstrapped startup keep up?

3•lewq•34m ago•0 comments

Trump instructs federal agencies to stop work with Anthropic

https://www.cnn.com/2026/02/27/tech/anthropic-pentagon-deadline
1•empressplay•34m ago•0 comments

How are we physically caging autonomous AI? (My architecture for kill-switch)

https://plinklogic.tech
1•Johngreetme•35m ago•1 comments

Show HN: QF STEM Ledger – Logging Structured Cognitive Work

https://ledger.quantumformalism.com/
1•bamborde_zaiku•35m ago•0 comments

Write Modern Go Code with Junie and Claude Code

https://blog.jetbrains.com/go/2026/02/20/write-modern-go-code-with-junie-and-claude-code/
1•Annprots•37m ago•1 comments

Paramount strikes deal to buy Warner Bros Discovery for $110B

https://news.sky.com/story/paramount-agrees-to-buy-warner-bros-discovery-in-110bn-deal-13513157
1•austinallegro•38m ago•1 comments

Human brain cells on a chip learned to play Doom in a week

https://www.newscientist.com/article/2517389-human-brain-cells-on-a-chip-learned-to-play-doom-in-...
3•stared•38m ago•0 comments

Rank5.io – a party game about the people you play with

https://rank5.io/howTo
2•blendaddict•40m ago•2 comments