frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Generating All 32-Bit Primes (Part I)

https://hnlyman.github.io/pages/prime32_I.html
20•hnlyman•1h ago

Comments

logicallee•1h ago
there are also very fast primality tests that work statistically. It's called Miller-Rabin, I tested in the browser here[1] and it can do them all in about three minutes on my phone.

[1] https://claude.ai/public/artifacts/baa198ed-5a17-4d04-8cef-7...

ZyanWu•53m ago
> There is a long way to go from here. Kim Walisch's primesieve can generate all 32-bit primes in 0.061s (though this is without writing them to a file)

Oh, come on, just use a bash indirection and be done with it. It takes 1 minute and you had another result for comparison

senfiaj•49m ago
There is also the segmented Sieve of Eratosthenes. It has a simlar performance but uses much less memory: the number of prime numbers from 2 to sqrt(n). For example, for n = 1000000, the RAM has to store only 168 additional numbers.

I use this algorithm here https://surenenfiajyan.github.io/prime-explorer/

forinti•33m ago
If you take all 53 8 bit primes, you can use modular arithmetic with a residue base to work with numbers up to

64266330917908644872330635228106713310880186591609208114244758680898150367880703152525200743234420230

This would require 334 bits.

The U.S. Mint dropped the olive branch from the dime

https://fortune.com/2026/03/12/us-mint-drops-olive-branch-dime-peace-war/
1•masfuerte•49s ago•0 comments

AcquireYet: Buy and sell websites, blogs, and online businesses–fast

1•Acquireyet•2m ago•0 comments

Dependency and Skill Fade

https://eclecticlight.co/2026/03/15/last-week-on-my-mac-dependency-and-skill-fade/
1•OberstKrueger•2m ago•0 comments

Water and Sanitation in the Developing World

https://alltrades.substack.com/p/the-trillion-dollar-bill-on-the-sidewalk
1•mhb•5m ago•0 comments

Show HN: Spaced repetition API – decks, cards, reviews, scheduling

https://repple.sh/developers
1•tootyskooty•5m ago•0 comments

Ocarina of Time Port for the Sega Dreamcast

https://twitter.com/falco_girgis/status/2033001378658865509
1•tosh•6m ago•0 comments

$500M Zappos mystery will

https://www.nytimes.com/2026/03/15/business/the-500-million-mystery-will-signed-by-ghosts.html
1•ptmkenny•9m ago•0 comments

Show HN: Companies.social – company enrichment without the $0.04/lookup tax

https://companies.social
1•ptrtht•10m ago•1 comments

Can scientists resurrect the dodo? Inside the company that says they can

https://www.theguardian.com/us-news/2026/mar/15/colossal-biosciences-resurrects-dire-wolf
1•Brajeshwar•13m ago•0 comments

Six friends started an annual trip. It would become a lifeline

https://www.washingtonpost.com/travel/2026/03/14/travel-boys-trip-male-friendship/
1•wallflower•15m ago•0 comments

AI coding agents accidentally introduced vulnerable dependencies

2•hsin003•17m ago•2 comments

Glassworm Is Back: A New Wave of Invisible Unicode Attacks Hits Repositories

https://www.aikido.dev/blog/glassworm-returns-unicode-attack-github-npm-vscode
2•robinhouston•19m ago•0 comments

EU strips AI, chips and quantum from industrial plan aimed at countering China

https://www.scmp.com/news/china/diplomacy/article/3345311/eu-strips-ai-chips-and-quantum-industri...
1•alephnerd•20m ago•0 comments

Modelwerk: Neural Networks as Machinery

https://dehora.net/journal/2026/modelwerk-neural-networks-as-machinery
1•hrpnk•20m ago•0 comments

MCP in Layman Terms

https://cheikhhseck.medium.com/godex-a-perpetually-free-ai-coding-agent-acf5d7facb6d
1•cheikhshift•20m ago•0 comments

Godel Number for Genesis 1

2•7h3P146u3•25m ago•1 comments

Small U.S. town, big company. Can it weather the tariff Blizzard? (Digi-Key)

https://www.npr.org/2025/04/24/nx-s1-5332209/digikey-tariff-small-minnesota-town-big-company
1•upofadown•27m ago•0 comments

Show HN: What if your synthesizer was powered by APL (or a dumb K clone)?

https://octetta.github.io/k-synth/
1•octetta•28m ago•0 comments

Show HN: OpsOrch – a unified API for incidents, logs, metrics, and runbooks

https://www.opsorch.com/
3•yusufaytas•29m ago•0 comments

Munchy Cow – Audio cleanup in Elixir/Rust with per-second billing

https://munchycow.com/
1•qeonda•30m ago•1 comments

Cert Authorities Check for DNSSEC from Today

https://www.grepular.com/Cert_Authorities_Check_for_DNSSEC_From_Today
1•amaccuish•33m ago•0 comments

XDR Display issues with the M3 pro MacBook

https://aidistillery.dev/apple_xdr_studio_m3/
1•muro•34m ago•0 comments

A Theory of the World as run by large adult children

https://tomclancy.info/harold-and-george.html
17•tclancy•38m ago•3 comments

Ouroboros: AI research loop that rewrites methodology with lineage logs

https://github.com/Kargatharaakash/ouroboros
1•k_aakash•39m ago•1 comments

Show HN: ResonanceNet – Proof-of-Training Blockchain

https://github.com/Kristian5013/resonancenet
1•kristianXXI•39m ago•0 comments

GotHub All the Things

https://x61.sh/log/2026/03/14032026191148-gothub.html
1•renehsz•39m ago•0 comments

Thundering Herd Problem Visual Guide with Analogies

https://dvcoolarun.com/2026/03/15/Thundering-Herd-Problem-visual-guide-with-analogies.html
2•dvcoolarun•40m ago•0 comments

UK government publishes guidance on AI coding assistants

https://www.gov.uk/government/publications/ai-insights/ai-insights-ai-coding-assistants-for-devel...
1•santiago-pl•40m ago•1 comments

Show HN: Auditor Core–CLI security auditing engine with mathematical SPI scoring

https://github.com/auditor-core-systems/auditor-core-demo
1•EldorZ•43m ago•0 comments

PSA: Top Google Result for Claude Code Is Malicious

https://onemillionwords.substack.com/p/top-google-result-for-claude-code
3•rahulyc•43m ago•1 comments