Generating All 32-Bit Primes (Part I)
https://hnlyman.github.io/pages/prime32_I.htmlThe largest three primes it can show are
3317044064679887385961783
3317044064679887385961801
3317044064679887385961813
Here is a direct link to it: <https://susam.net/primegrid.html#3317044064679887385961781-2...>.So, essentially it can test all 81-bit integers and some 82-bit integers for primality. It does so using Miller-Rabin primality test with prime bases drawn from https://oeis.org/A014233 to determine whether a number is prime.
Here is the complete implementation of the algorithm: <https://github.com/susam/susam.net/blob/0.6.0/content/tree/p...>
I use this algorithm here https://surenenfiajyan.github.io/prime-explorer/
64266330917908644872330635228106713310880186591609208114244758680898150367880703152525200743234420230
This would require 334 bits.
Oh, come on, just use a bash indirection and be done with it. It takes 1 minute and you had another result for comparison
Does having the primes in a file even allow faster is-prime lookup of a number?
[1] https://claude.ai/public/artifacts/baa198ed-5a17-4d04-8cef-7...