mersenneforum.org  

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

Reply
 
Thread Tools
Old 2010-11-19, 15:55   #12
Bdot
 
Bdot's Avatar
 
Nov 2010
Germany

3×199 Posts
Default

Thanks a lot, I think now I got it ...
Bdot is offline   Reply With Quote
Old 2010-11-21, 22:33   #13
davieddy
 
davieddy's Avatar
 
"Lucan"
Dec 2006
England

2·3·13·83 Posts
Default

Quote:
Originally Posted by Mini-Geek View Post
Yes, see http://mersenne.org/various/math.php for the algorithm used to check if a number divides a Mersenne number. It does one step for each bit in the exponent, so the speed for each division would seem to be mainly related to the bit length of the exponent.
Yep. That was my meaning exactly.
A couple of refinements:

1) The first six bits of the exponent generate the number
2^63 at most. If the bits are all 1 we get:
2^1, 2^3 , 2^7, 2^15, 2^31, 2^63, so for testing factors
>2^63, the number of steps in the algorithm is (bits in exponent - 6).

2) The squaring and more importantly the division/modulo steps get
more time consuming with the number of bits in the factor, 64 being
a notable watershed.

David

Last fiddled with by davieddy on 2010-11-21 at 23:18
davieddy is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I enter a larger exponent? evanh Software 59 2017-12-28 11:25
larger B1 for GMP-ECM in yoyo@home yoyo GMP-ECM 41 2017-01-04 05:53
2003-10-29: P-1: a set of 26 larger exponents GP2 Completed Missions 3 2003-11-12 14:16
2003 Nov 03: P-1: a set of 16 larger exponents GP2 Completed Missions 2 2003-11-09 01:21
2003 Oct 31: P-1: a set of 17 larger exponents GP2 Completed Missions 2 2003-11-03 15:34

All times are UTC. The time now is 21:29.


Sun Aug 1 21:29:45 UTC 2021 up 9 days, 15:58, 0 users, load averages: 0.82, 1.25, 1.42

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.