![]() |
The Wagstaff formula seems correct when comparing those results with the reported length of Wagstaff PRPs on [URL="http://www.primenumbers.net/prptop/searchform.php?form=%282%5En%2B1%29%2F3&action=Search"]PRPTop[/URL]
|
[QUOTE=MischaR;629482]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[/CODE][/QUOTE] I have no idea where the / 3.0 came from in the code. I will let you know when it is fixed. |
[QUOTE=MischaR;629495]The Wagstaff formula seems correct when comparing those results with the reported length of Wagstaff PRPs on [URL="http://www.primenumbers.net/prptop/searchform.php?form=%282%5En%2B1%29%2F3&action=Search"]PRPTop[/URL][/QUOTE]
By my math, Wagstaff should be [c]floor(log10(doubleB) * doubleN - log10(3.0) + 1.0);[/c] (that's where the 3 comes into play). On this subject, is there any way you (rogue) can move the heavily repeated [c]floor[/c] call and addition by 1.0 out of the switch statement so it's only in the code once? You can use the [c]return 0.0;[/c] line as a [c]default[/c] clause. |
For those who are migrating from 5.4.3 to 5.5 version (as I am) and don't want to start from scratch here are simple sql queries to adjust DB structure:
[CODE] alter table Candidate drop column HasSierpinskiRieselPrime; alter table CandidateGroupStats drop column SierpinskiRieselPrime; alter table CandidateGroupStats add column SierpinskiRieselPrimeN int default 0;[/CODE] |
I need a Windows build that includes revision 113 (with the fix for llr2's round-off errors). I recently switched my computers to llr2, and now my one Windows computer has PRPNet crashing on a test with round-off errors.
|
1 Attachment(s)
[QUOTE=Happy5214;633563]I need a Windows build that includes revision 113 (with the fix for llr2's round-off errors). I recently switched my computers to llr2, and now my one Windows computer has PRPNet crashing on a test with round-off errors.[/QUOTE]
attached the prpnet server compiled with vs2019 |
I have updated the executable for PRPNet to 5.5.2 over at sourceforge. Here are the changes for 5.5.1 and 5.5.2:
[code] Version 5.5.2: July 3, 2023 - New Release prpclient: Avoid infinite loop if unable to connect to server. Version 5.5.1: April 28, 2023 - New Release prpserver: Added showteamsonhtml configuration switch to control HTML generation. Fix length calculation for Carol/Kynea servers. Added all_primes.html page which can be sorted per prpserver.ini configuration. Add support a new gcwsieve output format. Give error if ids have an embedded ? as the ODBC driver on the server doesn't like it. prpclient: If connection to server is lost while sending results, retry if any results where successfully submitted. Change text as roundoff errors with llr2 can put "probable prime" on a line that doesn't have a reside. Fix check for ? in id fields. Reconnect to server if connection was lost. [/code] |
| All times are UTC. The time now is 13:48. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.