mersenneforum.org  

Go Back   mersenneforum.org > New To GIMPS? Start Here! > Information & Answers

Reply
 
Thread Tools
Old 2007-04-24, 22:32   #1
roger
 
roger's Avatar
 
Oct 2006

22·5·13 Posts
Default Different bases = different times?

I'm wondering how the amount of time to do primality tests changes with the base that is used with k.b^n+-1. I know that an odd base is not as quick as a base that is a power of two, but don't know if an even base has different times to complete primality tests than a power of two base.

Eg: k*2^n+1 = 10000 digits. k*62^n+1 = 10000 digits. Does the test time change?

Thanks,

Roger
roger is offline   Reply With Quote
Old 2007-04-25, 14:35   #2
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22·5·373 Posts
Default

Quote:
Originally Posted by roger View Post
I'm wondering how the amount of time to do primality tests changes with the base that is used with k.b^n+-1. I know that an odd base is not as quick as a base that is a power of two, but don't know if an even base has different times to complete primality tests than a power of two base.

Eg: k*2^n+1 = 10000 digits. k*62^n+1 = 10000 digits. Does the test time change?
Yes.

The number of modular squarings is the same. Since k*b^n + 1, b!= 2
will have higher Hamming weight, the latter will have more multiplications
by b. [but note that multiplication by a single precision number does not
take much time.]

The biggest gain comes from the fact that it is MUCH faster to do modular
multiplication modulo k*2^n + 1 than for k*b^n + 1, b != 2.
R.D. Silverman is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bases > 1030 and k's > CK gd_barnes Conjectures 'R Us 132 2021-01-09 05:58
k*b^n+/-1, Bases 271 and 11971 robert44444uk Math 26 2021-01-08 07:08
Numbers in Other Bases are Belong to Us Stargate38 Lounge 44 2020-10-24 11:33
Other Bases? wblipp GPU Computing 50 2012-10-11 13:23
Primeness of bases henryzz Conjectures 'R Us 15 2010-04-18 18:07

All times are UTC. The time now is 17:49.


Fri Jul 16 17:49:32 UTC 2021 up 49 days, 15:36, 1 user, load averages: 2.03, 1.53, 1.49

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.