Maximizing Battery Storage Profits via High-Frequency Intraday Trading
arxiv.org
My Mac Contacted 63 Different Apple Owned Domains in One Hour – While Not Is Use
appaddict.app
Danish Ministry Replaces Windows and Microsoft Office with Linux and LibreOffice
heise.de
Air India passenger plane with over 200 onboard crashes near Meghaninagar
economictimes.indiatimes.com
Build a minimal decorator with Ruby in 30 minutes
remimercier.com
Microsoft Office migration from Source Depot to Git
danielsada.tech
Dancing brainwaves: How sound reshapes your brain networks in real time
sciencedaily.com
Altman fluffs superintelligence to save humanity as OpenAI slashes prices
theregister.com
SchemeFlow (YC S24) Is Hiring a Founding Engineer (London) to Speed Up Construction
ycombinator.com
The hunt for Marie Curie's radioactive fingerprints in Paris
bbc.com
Pentagon Has Been Pushing Americans to Believe in UFOs for Decades, New Report
gizmodo.com
Agentic Coding Recommendations
lucumr.pocoo.org
Show HN: Eyesite - experimental website combining computer vision and web design
blog.andykhau.com
Show HN: Spark, An advanced 3D Gaussian Splatting renderer for Three.js
sparkjs.dev
Plants hear their pollinators, and produce sweet nectar in response
cbc.ca
Research suggests Big Bang may have taken place inside a black hole
port.ac.uk
Next.js 15.1 is unusable outside of Vercel
omarabid.com
Quantum Computation Lecture Notes by Peter Shor
math.mit.edu
V-JEPA 2 world model and new benchmarks for physical reasoning
ai.meta.com
My Cord-Cutting Adventure (2020)
brander.ca
Show HN: Ikuyo a Travel Planning Web Application
ikuyo.kenrick95.org
That is silly, generating them takes a bit of searching but not THAT much. The trick is to generate random odd numbers n, then do some fast trial divisions to check whether n and 2n+1 might both be prime. Usually those tests will fail fast (one or both are composite). Otherwise do pseudoprime tests. The events "n is prime" and "2n+1 is prime" are close to independent so basically use the prime number theorem, Pr[both prime] = approx 1/ln(n)^2. So for 4096 bits, that's around 1 in 10 million. You can chuck out vast swaths very quickly so you might have to do a few tens of thousands of pseudoprime checks, of which a modern midrange x86 box can do maybe 1000/sec. So you should be able to generate a 4096 bit pair in under a minute without fancy implementation methods.
That C program is kind of nuts and unnecessary. Since most of the computation time will be in the mpz library, you might as well use a simpler wrapper written in Python or whatever. If you want to go really fast, maybe you can parallelize the trial divisions with SIMD or a GPU.
Also, for cryptography, nobody cares about these primes any more. They use elliptic curves now.