![]() |
|
|
#188 |
|
"Alexander"
Nov 2008
The Alamo City
991 Posts |
My upgrade of the HTML markup to HTML5 that I started many months ago is finally ready for review. It can be seen at https://github.com/happy5214/prpnet/tree/html5.
|
|
|
|
|
|
#189 | |
|
"Mark"
Apr 2003
Between here and the
734110 Posts |
Quote:
Also on my wish list is to replace sprintf with snprintf and vsprintf with vsnprintf so that modern compilers don't squawk. |
|
|
|
|
|
|
#190 | |
|
"Alexander"
Nov 2008
The Alamo City
991 Posts |
Quote:
|
|
|
|
|
|
|
#191 | |
|
"Mark"
Apr 2003
Between here and the
3×2,447 Posts |
Quote:
Last fiddled with by rogue on 2023-03-28 at 19:37 |
|
|
|
|
|
|
#192 |
|
"Alexander"
Nov 2008
The Alamo City
991 Posts |
Attached.
|
|
|
|
|
|
#193 |
|
"Mark"
Apr 2003
Between here and the
3·2,447 Posts |
I have posted PRPNet 5.5 over at sourceforge. Here are the changes:
Code:
prpserver: Added HTML5 support.
Updated prpnet.css for HTML5 and provided default URL for it in prpserver.ini.
Replaced sprintf and vsprintf with snprintf and vsnprintf.
Added minutesbetweenstatsrefresh= configuration option to prpserver.ini.
Fixed Sohpie-Germain server support.
Fixed length calculation for Carol/Kynea servers.
Fixed sorting of candidates for work selection.
prpclient: Add support for new -A parameter for pfgw. This allows targeting pfgw to
a specific CPU (Windows only).
|
|
|
|
|
|
#194 |
|
A Sunny Moo
Aug 2007
USA
189A16 Posts |
I found a funny little "bug" (maybe not a bug so much as unexpected input) in prpclient today regarding parsing LLR's lresults.txt file when LLR has logged messages relating to roundoff errors. I noticed that one of my unattended machines' clients had stopped crunching, and found that its prpclient had stopped with this message in prpclient.log:
Code:
[2023-04-01 16:07:23 EDT] G1300: Could not find RES64 residue [lresults.txt]. Is llr broken? Code:
Iter: 3798469/3785205, ERROR: ROUND OFF (0.401769273) > 0.4 Continuing from last save file. Resuming probable prime test of 681041*2^5562306-1 at bit 2435691 [43.78%] Using FMA3 FFT length 560K, Pass1=448, Pass2=1280, clm=4, 4 threads, a = 3, L2 = 746*466 681041*2^5562306-1 is not prime. RES64: 407FCCFFB8828E21 Time : 4134.141 sec.
Note for reproducing/testing this issue: the reason LLR is doing a PRP test instead of an LLR test on this number is because I'm using LLR2 (v1.3.3) with the "-oGerbicz=1" option set (using the "batch file/shell script trick" discussed in this thread for setting command-line options), which for k*2^n-1 will force PRP mode so it can do Gerbicz error checking. By default without command-line options, LLR2 behaves like older (pre-Gerbicz) versions of Jean's mainline LLR, defaulting to an unchecked LLR test instead of a PRP. The recent versions of Jean's LLR (e.g. the current 4.0.3) now default to PRP for k*2^n-1 candidates in order to enable Gerbicz checks (unless -oErrorChecking=0 is set), so they may produce similar lresults.txt output. (I'm currently using LLR2 since it doesn't suffer the excessive overheads that Jean's current Gerbicz implementation incurs.) Since the particular roundoff error I experienced here appears to be non-reproducible (probably a hardware error caught by the Gerbicz checks!), the easiest way to test this may be to manually write contents like the above to lresults.txt while PRPNet+LLR is running, then use Ctrl-C to terminate LLR so prpclient will check the lresults.txt for a result. (At least, that's how I worked around the issue to get this particular result submitted to my server without re-running the test. )
|
|
|
|
|
|
#195 |
|
"Mark"
Apr 2003
Between here and the
3×2,447 Posts |
I changed the text to "is a probable prime".
|
|
|
|
|
|
#196 |
|
A Sunny Moo
Aug 2007
USA
2×47×67 Posts |
Thanks! Seems to have done the trick.
My CRUS clients are giving the new code a pretty good workout right now as they work through an FFT boundary region with lots of (apparently at least somewhat reproducible) roundoff errors...haven't had any stuck clients since upgrading to PRPNet 5.5/r113 earlier today. (Was getting one every few hours on the old version.)
Last fiddled with by mdettweiler on 2023-04-03 at 02:58 |
|
|
|
|
|
#197 |
|
Sep 2022
Netherlands
2210 Posts |
I think the DecimalLength calculator for Carol-Kynea is incorrect. The formula used is:
floor(log10(base) * (n * 2) / 3 + 1) But I think it should be floor(log10(base) * (n * 2) + 1) Few examples: Code:
sum used formula suggested formula actual length (10^123-1)^2-2 83 247 246 (10^1061+1)^2-2 708 2123 2123 (60^11307+1)^2-2 13404 40212 40212 (290^124116-1)^2-2 203749 611246 611246 |
|
|
|
|
|
#198 |
|
"Alexander"
Nov 2008
The Alamo City
991 Posts |
I think it might have been flipped with the Wagstaff case below it (though the formula looks slightly incorrect in that case too).
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PRPNet 4.0.0 Released | rogue | Software | 84 | 2011-11-16 21:20 |
| PRPNet 4.0.1 Released | Joe O | Sierpinski/Riesel Base 5 | 1 | 2010-10-22 20:11 |
| PRPNet 3.0.0 Released | rogue | Conjectures 'R Us | 220 | 2010-10-12 20:48 |
| PRPnet | mdettweiler | No Prime Left Behind | 80 | 2010-02-09 21:31 |
| PRPNet released! | rogue | Conjectures 'R Us | 250 | 2009-12-27 21:29 |