Factor out Miller-Rabin checking into its own file.
This further cleans up the prime-generation code, to the point where the main primegen() function has almost nothing in it. Also now I'll be able to reuse M-R as a primitive in more sophisticated alternatives to primegen().
Loading
Please register or sign in to comment