Pollard's rho algorithm for logarithms: Difference between revisions

Content deleted Content added
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 52:
Consider, for example, the group generated by 2 modulo <math>N=1019</math> (the order of the group is <math>n=1018</math>, 2 generates the group of units modulo 1019). The algorithm is implemented by the following [[C++]] program:
 
<sourcesyntaxhighlight lang="cpp">
#include <stdio.h>
 
Line 79:
return 0;
}
</syntaxhighlight>
</source>
 
The results are as follows (edited):