mersenneforum.org  

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

Reply
 
Thread Tools
Old 2023-04-27, 12:05   #199
MischaR
 
MischaR's Avatar
 
Sep 2022
Netherlands

2×11 Posts
Default

The Wagstaff formula seems correct when comparing those results with the reported length of Wagstaff PRPs on PRPTop

Last fiddled with by MischaR on 2023-04-27 at 12:19 Reason: PRPTop lists PRPs, not primes
MischaR is offline   Reply With Quote
Old 2023-04-27, 13:59   #200
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

162558 Posts
Default

Quote:
Originally Posted by MischaR View Post
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
I have no idea where the / 3.0 came from in the code. I will let you know when it is fixed.
rogue is online now   Reply With Quote
Old 2023-04-27, 18:01   #201
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

991 Posts
Default

Quote:
Originally Posted by MischaR View Post
The Wagstaff formula seems correct when comparing those results with the reported length of Wagstaff PRPs on PRPTop
By my math, Wagstaff should be floor(log10(doubleB) * doubleN - log10(3.0) + 1.0); (that's where the 3 comes into play).

On this subject, is there any way you (rogue) can move the heavily repeated floor call and addition by 1.0 out of the switch statement so it's only in the code once? You can use the return 0.0; line as a default clause.

Last fiddled with by Happy5214 on 2023-04-27 at 18:13 Reason: Clarify who should move the code
Happy5214 is offline   Reply With Quote
Old 2023-05-02, 18:30   #202
unconnected
 
unconnected's Avatar
 
May 2009
Moscow, Russia

2,963 Posts
Default

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;
unconnected is online now   Reply With Quote
Old 2023-07-03, 13:31   #203
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

3DF16 Posts
Default

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.
Happy5214 is offline   Reply With Quote
Old 2023-07-03, 13:59   #204
rebirther
 
rebirther's Avatar
 
Sep 2011
Germany

5·7·103 Posts
Default

Quote:
Originally Posted by Happy5214 View Post
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.
attached the prpnet server compiled with vs2019
Attached Files
File Type: zip server-r122.zip (500.6 KB, 7 views)
rebirther is offline   Reply With Quote
Old 2023-07-03, 14:37   #205
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

3×2,447 Posts
Default

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.
rogue is online now   Reply With Quote
Reply

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

All times are UTC. The time now is 14:06.


Fri Jul 7 14:06:19 UTC 2023 up 323 days, 11:34, 0 users, load averages: 1.43, 1.23, 1.17

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, 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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔