mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2008-01-05, 14:19   #1
tnerual
 
tnerual's Avatar
 
Oct 2006

7·37 Posts
Default llrnet on base exponent of 2

hello,

i work on the conjecture are us project ...

we actually work on the base 16 sierpinski part

so we test number like 31347*16^36249+1


i got these timings (same numbers tested):
LLRNET: 31347*16^36249+1 is not prime. RES64: C9DDFFA46F2BB6FB Time: 490.180 sec.
LLR 3.7.1C : 31347*2^144996+1 is not prime. Proth RES64: F25ECE59387BB41F Time: 138.144 sec.

the llrnet version is the on from rieselbase 5 modified to accept something else than k*2^n+1

LLR is almost 4 time faster than LLRnet (probably due to the fact that 2^4=16 and that llr test in base 2 and llrnet test in base 16)

is there a way to modify it or to find a trick to do the job in the fast way ?

thanks

Last fiddled with by tnerual on 2008-01-05 at 14:20
tnerual is offline   Reply With Quote
Old 2008-01-05, 15:47   #2
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

61·79 Posts
Default

Quote:
Originally Posted by tnerual View Post
hello,

i work on the conjecture are us project ...

we actually work on the base 16 sierpinski part

so we test number like 31347*16^36249+1


i got these timings (same numbers tested):
LLRNET: 31347*16^36249+1 is not prime. RES64: C9DDFFA46F2BB6FB Time: 490.180 sec.
LLR 3.7.1C : 31347*2^144996+1 is not prime. Proth RES64: F25ECE59387BB41F Time: 138.144 sec.

the llrnet version is the on from rieselbase 5 modified to accept something else than k*2^n+1

LLR is almost 4 time faster than LLRnet (probably due to the fact that 2^4=16 and that llr test in base 2 and llrnet test in base 16)

is there a way to modify it or to find a trick to do the job in the fast way ?

thanks
31347*16^36249+1 = 31347*2^(36249*4)+1 ?

Luigi
ET_ is offline   Reply With Quote
Old 2008-01-05, 18:13   #3
tnerual
 
tnerual's Avatar
 
Oct 2006

25910 Posts
Default

Quote:
Originally Posted by ET_ View Post
31347*16^36249+1 = 31347*2^(36249*4)+1 ?

Luigi
yes i know ... i'm testing exactly the same number but LLrnet is 4 times slower ...
tnerual is offline   Reply With Quote
Old 2008-01-05, 18:20   #4
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

113238 Posts
Default

Quote:
Originally Posted by tnerual View Post
yes i know ... i'm testing exactly the same number but LLrnet is 4 times slower ...


I think that Jean Penne' used optimized assembly routines in his LLR.

Luigi
ET_ is offline   Reply With Quote
Old 2008-01-05, 19:19   #5
axn
 
axn's Avatar
 
Jun 2003

5,087 Posts
Default

Quote:
Originally Posted by ET_ View Post


I think that Jean Penne' used optimized assembly routines in his LLR.

Luigi
I think what he is saying that the newer LLR can automatically recognize that a power-of-two base can be tested as a base-2 number, thus using the more efficient base-2 FFTs rather than the generic PRP FFT. Thus, if the LLRNet (which uses older LLR 3.5) can be patched to do automatic conversion, it can gain from this principle.
axn is offline   Reply With Quote
Old 2008-01-05, 20:41   #6
tnerual
 
tnerual's Avatar
 
Oct 2006

1000000112 Posts
Default

Quote:
Originally Posted by axn1 View Post
I think what he is saying that the newer LLR can automatically recognize that a power-of-two base can be tested as a base-2 number, thus using the more efficient base-2 FFTs rather than the generic PRP FFT. Thus, if the LLRNet (which uses older LLR 3.5) can be patched to do automatic conversion, it can gain from this principle.
thanks axn for translating what i was trying to explain ...

at this moment, i just convert base 16 exponent to base 2 exponent with excel ... it's not too difficult (for small amount of pairs), but it would be more user friendly if it was done "automagically"

it's not really a bug but something really annoying (4 times slower)
tnerual is offline   Reply With Quote
Old 2008-01-06, 01:38   #7
axn
 
axn's Avatar
 
Jun 2003

5,087 Posts
Default

I have a patched LLRNet which can fudge base and n before calling the prp test. However, I can't attach it here, since the zip file is around 640KB (forum limit is 244KB). If you PM me your email, I can send it to you by mail.

If you prefer to build your own LLRNet, I have attached the modified file that needs to be inserted into the LLRNet source code.
Attached Files
File Type: zip llr2.zip (7.0 KB, 39 views)

Last fiddled with by axn on 2008-01-06 at 01:39
axn is offline   Reply With Quote
Old 2008-01-06, 06:11   #8
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

186916 Posts
Default

Quote:
Originally Posted by axn1 View Post
I have a patched LLRNet which can fudge base and n before calling the prp test. However, I can't attach it here, since the zip file is around 640KB (forum limit is 244KB). If you PM me your email, I can send it to you by mail.

If you prefer to build your own LLRNet, I have attached the modified file that needs to be inserted into the LLRNet source code.
Does it do an LLR or Proth test, rather than a PRP test, after it's fudged the base and n? The newer versions of manual LLR will do an LLR/Proth test after converting the numbers to base 2, as long as they can be converted to base 2.
mdettweiler is offline   Reply With Quote
Old 2008-01-06, 06:20   #9
axn
 
axn's Avatar
 
Jun 2003

5,087 Posts
Default

Quote:
Originally Posted by Anonymous View Post
Does it do an LLR or Proth test, rather than a PRP test, after it's fudged the base and n? The newer versions of manual LLR will do an LLR/Proth test after converting the numbers to base 2, as long as they can be converted to base 2.
It should. However, I haven't tested it yet, so I don't even know whether it works at all

Any volunteers?
axn is offline   Reply With Quote
Old 2008-01-06, 22:13   #10
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3×2,083 Posts
Default

Quote:
Originally Posted by axn1 View Post
It should. However, I haven't tested it yet, so I don't even know whether it works at all

Any volunteers?
I'll try. (It shouldn't even need to be set up to communicate with a server--all I'll need to do is drop one or two sierp. base 16 candidates in the workfile.txt file.) My email is bugmesticky *at* googlemail *dot* com.

BTW, since it would appear that you've been at least able to build LLRnet successfully on your machine, could you possibly try building a copy of LLRnet with the LLR 3.7.1c source dropped in for me? I was going to try it myself, but for some reason the gcc on my machine (Ubuntu 7.10) couldn't find all the required files to build LUA (which is apparently part of LLRnet). I could send you my copy of the LLRnet source files that already have the 3.7.1c source code dropped in (in place of the 3.5.1 code), if you want.

Last fiddled with by mdettweiler on 2008-01-06 at 22:16
mdettweiler is offline   Reply With Quote
Old 2008-01-07, 00:34   #11
axn
 
axn's Avatar
 
Jun 2003

13DF16 Posts
Default

Quote:
Originally Posted by Anonymous View Post
I'll try. (It shouldn't even need to be set up to communicate with a server--all I'll need to do is drop one or two sierp. base 16 candidates in the workfile.txt file.) My email is bugmesticky *at* googlemail *dot* com.
YGM.

I'll try to build it with LLR 3.7, but my past attempts with 3.6 has not been very successful so I am not very hopeful.
axn is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Base-6 speed for prime testing vs. base-2 jasong Conjectures 'R Us 36 2010-08-03 06:25
LLRNET ValerieVonck Software 12 2010-03-15 18:09
llrnet 64 bit balachmar Prime Sierpinski Project 4 2008-07-19 08:21
Sierp base 6 LLRnet server IronBits Conjectures 'R Us 18 2008-03-28 04:29
LLRNet em99010pepe Riesel Prime Search 20 2007-09-11 21:03

All times are UTC. The time now is 22:56.


Fri Aug 6 22:56:51 UTC 2021 up 14 days, 17:25, 1 user, load averages: 4.69, 4.31, 4.05

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.