Page history
20 December 2011
rosettacode>Mwn3d
Somewhere in there I got rid of the need for 12 as a BigInteger, reformat
m+177
rosettacode>Mwn3d
Forgot to update the output, remove runtime check
m+21
rosettacode>Mwn3d
With the GCD check we can be sure that we have found a primitive, so we can mark them (negligible speed change)
m−325
19 December 2011
14 December 2011
rosettacode>Mwn3d
This is what I was really looking for when I made that last optimization
−110
rosettacode>Mwn3d
Another slight speedup
+463
16 November 2011
rosettacode>Mwn3d
Don't have to scale by 1. Negligible effect on the run time.
mrosettacode>Mwn3d
Save another operation (this way might do the same thing under the hood)
m−9
rosettacode>Mwn3d
Possibly saving one addition every once in a while
m
12 August 2011
11 August 2011
15 July 2011
rosettacode>Mwn3d
Moved the LIMIT declaration but forgot to take the comment with it
m−2
rosettacode>Mwn3d
Fursther optimization by skipping more a,b pair candidates (noted in the comments), rm runtime calculations
+346
rosettacode>Mwn3d
Incredibly slight optimization (took the runtime of a 10k perimeter limit from 90 seconds to 89 seconds on this computer)
m+111
rosettacode>Mwn3d
Extra notes and comments, move a comparison so it is only calculated if needed.
m+484