View Single Post
Old 2019-01-24, 03:14   #4
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×52×79 Posts
Default

Incidentally, rather than
Code:
? gettime(); foo; print(bar); gettime()
I would write
Code:
? #
? foo; bar
where # turns the timer on (or off). In your case this would have resulted in
Code:
? #
   timer = 1 (on)
? p=21701;n=2^p-1;e=n;r=Mod(3,n)^((e))-3;[length(e),lift(r)]
time = 54,996 ms.
%1 = [679, 0]
? p=21701;n=2^p-1;e=lift(Mod(2,n-1)^(p-1));r=Mod(3,n)^((e))+3;[length(e),lift(r)]
time = 54,455 ms.
%2 = [679, 0]
(Apologies if this was known/obvious.)
CRGreathouse is offline   Reply With Quote