Very well written
Generating All 32-Bit Primes (Part I)
31–35 of 35 posts
I enjoyed it too! Enough technical details to be useful, but not too boring.
Re: Generating All 32-Bit Primes (Part I)
#32Heh.
1.Create fast modulus quad M for dword D for the first 2000? 200000? (xM)D
2.Eliminate 0b,101b
3.Divide using vrcp14ss/vdivss with correction. Use fast square root too using rsqrt14.
Re: Generating All 32-Bit Primes (Part I)
#33I have a little tool called Prime Grid Explorer at https://susam.net/primegrid.html that I wrote for my own amusement. It can display all primes below 3317044064679887385961981 (an 82-bit integer). The largest three primes it can show are 3317044064679887385961783 3317044064679887385961801 3317044064679887385961813 Visit https://susam.net/primegrid.html#3317044064679887385961781-2... to see them plotted. Click the bu…
Very cool, thank you! Both the visualization tool and the description of Miller-Rabin. I didn't know an algorithm with these properties existed! Furthermore, your tool gave me a more intuitive feel of the rate at which primes "thin out" than every treatment of the topic I read previously.
Thank you for writing this. I'm glad my comment was useful.
Re: Generating All 32-Bit Primes (Part I)
#34[flagged]