mersenneforum.org  

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

Reply
 
Thread Tools
Old 2023-04-04, 19:30   #1101
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

7,487 Posts
Default

Quote:
Originally Posted by storm5510 View Post
You don't understand the question. OK. I will make it simpler.

Is k=1e6 the same as n=1e6?
Yes. All numeric inputs support scientific notation. They also support "g" and "m" and a few other characters.
rogue is offline   Reply With Quote
Old 2023-04-04, 23:23   #1102
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Oceanus Procellarum

BE116 Posts
Default

Quote:
Originally Posted by rogue View Post
Yes. All numeric inputs support scientific notation. They also support "g" and "m" and a few other characters.
I think you're still missing the question. Is k=10000 in fbncsieve equivalent to n=10000 in srsieve2? I was told quite a few years ago that a small n value was some gigantic number when converted to k.

I don't know how else to word this...
storm5510 is offline   Reply With Quote
Old 2023-04-05, 00:02   #1103
gd_barnes
 
gd_barnes's Avatar
 
"Gary"
May 2007
Overland Park, KS

1256910 Posts
Default

Quote:
Originally Posted by storm5510 View Post
I think you're still missing the question. Is k=10000 in fbncsieve equivalent to n=10000 in srsieve2? I was told quite a few years ago that a small n value was some gigantic number when converted to k.

I don't know how else to word this...
Why would the multiplier be equivalent to the exponent when talking about k*b^n-1 (or +1) forms? Since both fbncsieve and srsieve2 sieve those specific forms, the question comes across as not making sense.

Fbncsieve sieves a wide range of k. Srsieve2 sieves a wide range of n. Is that what you are asking?

To answer your question: no. They are not equivalent. 3*2^10000-1 is not the same as 10000*2^3-1. I'm not sure why the question had to be asked. The calculator in Windows would have given the answer.

Last fiddled with by gd_barnes on 2023-04-05 at 00:08
gd_barnes is offline   Reply With Quote
Old 2023-04-05, 00:46   #1104
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Oceanus Procellarum

3,041 Posts
Default

Quote:
Originally Posted by gd_barnes View Post
Why would the multiplier be equivalent to the exponent when talking about k*b^n-1 (or +1) forms? Since both fbncsieve and srsieve2 sieve those specific forms, the question comes across as not making sense.

Fbncsieve sieves a wide range of k. Srsieve2 sieves a wide range of n. Is that what you are asking?
No. It is not about ranges. There is a conversion for decimal to binary. Both can be the same number, just expressed in different ways. Example: n could be 15,383 and its equivalent k could be 584,101. It's like comparing pennies to $1 paper bills. Both the same value, but don't look the same.

I will let this go. It is not important. I was just goofing to pass some time.
storm5510 is offline   Reply With Quote
Old 2023-04-05, 04:04   #1105
Citrix
 
Citrix's Avatar
 
Jun 2003

163110 Posts
Default

Quote:
Originally Posted by rogue View Post
For base 2, even k are already removed, so you don't need -r. I broke this in 1.6. I will fix the code. I think I should remove -r and do that automatically. Thoughts?
I would prefer having a -r option or if -r is present by default then an include option.
Citrix is offline   Reply With Quote
Old 2023-04-05, 12:40   #1106
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11101001111112 Posts
Default

Quote:
Originally Posted by storm5510 View Post
Example: n could be 15,383 and its equivalent k could be 584,101. It's like comparing pennies to $1 paper bills. Both the same value, but don't look the same.
This doesn't make any sense to me so I don't think you are asking the right question.

Both sieves sieve k*b^n+/-1, but fbncsieve sieves for a fixed n and variable k (expressed as a range using -k and -K). srsieve2 sieves on variable n (expressed as a range using -n and -N) for one or more k (expressed as a sequence, e.g. k*b^n+/-1)

For srsieve2 -n1e6 -N2e6 means that variable n has a value between 1000000 to 2000000.
For fbncsieve -k1e6 -K2e6 means that variable k has a value between 1000000 to 2000000.
rogue is offline   Reply With Quote
Old 2023-04-05, 13:18   #1107
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

23×271 Posts
Default

Is he referring to something like 1024*2^n-1 == 2^(n+10)-1 ?
henryzz is offline   Reply With Quote
Old 2023-04-05, 13:59   #1108
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Oceanus Procellarum

3,041 Posts
Default

Quote:
Originally Posted by rogue View Post
This doesn't make any sense to me so I don't think you are asking the right question.

Both sieves sieve k*b^n+/-1, but fbncsieve sieves for a fixed n and variable k (expressed as a range using -k and -K). srsieve2 sieves on variable n (expressed as a range using -n and -N) for one or more k (expressed as a sequence, e.g. k*b^n+/-1)


For srsieve2 -n1e6 -N2e6 means that variable n has a value between 1000000 to 2000000.
For fbncsieve -k1e6 -K2e6 means that variable k has a value between 1000000 to 2000000.


The highlighted above is exactly what I was looking for. Both are numerically weighted the same. It would appear that I was being led-by-the-nose years ago when I was told they were not.

Many thanks, and apologies for the confusion!
storm5510 is offline   Reply With Quote
Old 2023-04-06, 17:04   #1109
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Oceanus Procellarum

3,041 Posts
Default

The error below happens with an inline series, but not with an "abcd" input file.

Example:
Code:
fbncsieve -k 3 -K 1000000 -p 3 -P 1e10 -W 6 -s "k*1061955^6+1" -o 1e10.abcd
Result:
Code:
fbncsieve v1.6, a program to find factors of k*b^n+c numbers for fixed b, n, and c and variable k
Sieve started: 3 < p < 1e10 with 499999 terms (3 < k < 1000000, k*1061955^6+1) (expecting 476143 factors)
Increasing worksize to 400000 since each chunk is tested in less than a second
Increasing worksize to 10000000 since each chunk is tested in less than a second
Increasing worksize to 50000000 since each chunk is tested in less than a second
Sieve completed at p=10171501019.
CPU time: 52.31 sec. (2.78 sieving) (4.89 cores)
Fatal Error:  Something is wrong.  Counted terms (26337) != expected terms (26336)
If I repeat the example line, the counted and expected terms on the bottom line are different each time. The same occurs if I change the series in the example line.

Sorry!
storm5510 is offline   Reply With Quote
Old 2023-04-06, 17:14   #1110
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

164778 Posts
Default

Quote:
Originally Posted by storm5510 View Post
The error below happens with an inline series, but not with an "abcd" input file.

Example:
Code:
fbncsieve -k 3 -K 1000000 -p 3 -P 1e10 -W 6 -s "k*1061955^6+1" -o 1e10.abcd
Result:
Code:
fbncsieve v1.6, a program to find factors of k*b^n+c numbers for fixed b, n, and c and variable k
Sieve started: 3 < p < 1e10 with 499999 terms (3 < k < 1000000, k*1061955^6+1) (expecting 476143 factors)
Increasing worksize to 400000 since each chunk is tested in less than a second
Increasing worksize to 10000000 since each chunk is tested in less than a second
Increasing worksize to 50000000 since each chunk is tested in less than a second
Sieve completed at p=10171501019.
CPU time: 52.31 sec. (2.78 sieving) (4.89 cores)
Fatal Error:  Something is wrong.  Counted terms (26337) != expected terms (26336)
If I repeat the example line, the counted and expected terms on the bottom line are different each time. The same occurs if I change the series in the example line.

Sorry!
I will take a look. It shouldn't be too hard to fix.
rogue is offline   Reply With Quote
Old 2023-04-07, 15:19   #1111
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

7,487 Posts
Default

Quote:
Originally Posted by rogue View Post
I will take a look. It shouldn't be too hard to fix.
The code is fixed and commited to sourceforge. This happens only with ABCD formatted output files.
rogue is offline   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 02:52.


Wed Oct 4 02:52:17 UTC 2023 up 21 days, 34 mins, 0 users, load averages: 0.81, 0.92, 0.91

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.

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