## Re: Infallible isprime(p) routine for 0<2^32

Expand Messages
• ... column 1: n column 2: #spsp{2,735} up to 2^n column 3: #spsp{2,63778} up to 2^n column 4: #spsp{2,842774} up to 2^n column 5: #spsp{2,858945} up to 2^n
Message 1 of 37 , Mar 11 1:49 PM
Phil Carmody <thefatphil@...> wrote:

> Once you've got a SPRP, on average each new SPRP test
> removes only a quarter of the fakes.

column 1: n
column 2: #spsp{2,735} up to 2^n
column 3: #spsp{2,63778} up to 2^n
column 4: #spsp{2,842774} up to 2^n
column 5: #spsp{2,858945} up to 2^n
column 6: #spsp{2,735,63778,842774,858945} up to 2^n

[32, 57, 50, 49, 50, 0]
[33, 82, 77, 77, 84, 0]
[34, 116, 125, 100, 115, 0]
[35, 166, 187, 161, 165, 0]
[36, 226, 251, 237, 243, 0]
[37, 301, 330, 316, 333, 0]
[38, 412, 455, 444, 451, 1]
[39, 554, 618, 597, 603, 1]
[40, 752, 851, 823, 811, 1]
[41, 1004, 1157, 1118, 1119, 2]
[42, 1369, 1557, 1515, 1534, 2]
[43, 1863, 2137, 2054, 2109, 3]
[44, 2540, 2843, 2754, 2841, 4]
[45, 3480, 3831, 3758, 3863, 6]
[46, 4637, 5172, 5171, 5200, 8]
[47, 6291, 7029, 7052, 7073, 9]
[48, 8472, 9531, 9510, 9615, 12]
[49, 11403, 12832, 12864, 12931, 15]
[50, 15507, 17577, 17429, 17483, 21]
[51, 20853, 23739, 23581, 23674, 29]
[52, 28340, 32242, 31961, 32087, 41]

1) spsp{2,842774} is the current 2-selfridge champ up to 2^32;

2) at n = 52, Phil's nostrum of floor(28340/4^3) = 442
is an order of magnitude greater than the observed 41
with the 3 extra spsp tests.

David
• ... Apologies, my Pari/GP script-fu is definitely not on par with DJB s. I just wanted to provide a script so that people could plug and chug an r,p pair to
Message 37 of 37 , Mar 14 7:55 PM
On 3/13/2013 5:47 AM, Phil Carmody wrote:
> No I couldn't. That's so overly verbose and redundant it makes me twitch, I can
> barely bring myself to repeat it!
> "lift(Mod(p*s, lift(znorder(Mod(2,s))))) == 1" is just
> "p*s % znorder(Mod(2,s)) == 1"
> Having 3 exit conditions to the loop is overkill too.

Apologies, my Pari/GP script-fu is definitely not on par with DJB's. I just
wanted to provide a script so that people could plug and chug an r,p pair to see
what psp's would be generated. Also, I didn't know that the % (mod) operator
still worked in Pari. I thought everything had to be done with Mod(). Thanks
for that insight.

> The latter worries me a bit, as it might imply wasted effort. I'm trying to
> picture how these duplicates arise. Given a n, the maximal prime factor p|s is
> uniquely defined, and r as order_2(p) is uniquely defined. Therefore n can only
> appear with pair (r,p)?

And apologies here too, I mis-remembered a statement from his Category S page
and mis-spoke by applying it to the Category E psp's.

On 3/14/2013 11:02 AM, WarrenS wrote:
> 2. Consulting the Cunningham project pages,
> http://homes.cerias.purdue.edu/~ssw/cun/index.html
> every Mersenne-form number 2^r - 1 now is fully factored if
> r<929. Apparently the first two open cases are r=929 and 947
> yielding 214 and 217 digit numbers to factor.

An update here: M929 has been factored, and a group of people have already
started factoring M947. You can find the factor for M929 here:
http://homes.cerias.purdue.edu/~ssw/cun/page125
And, you can see who is factoring which Cunningham number here:
http://homes.cerias.purdue.edu/~ssw/cun/who
And more importantly, you can find all known*1 factors for all important*2
numbers in the online factor database here:
factordb.com
Once there, you can type in 2^929-1, and it will show you all the factors of
that number and that it is Fully Factored (FF). Currently, you can type in
2^947-1 and see that it is a CF, composite number, with factors known, but not
yet fully factored.

*1 = All known factors that have been stored into the factordb.
*2 = All numbers that people are interested in and store in the factordb.

Also, the factordb stores prime numbers too. Below 300 digits it will just
prove the number prime, and above that it will accept Primo certificates and
verify them locally.

-David C.
Your message has been successfully submitted and would be delivered to recipients shortly.