mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Riesel Prime Search

Reply
 
Thread Tools
Old 2020-04-20, 15:57   #45
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

10000011101012 Posts
Default

Sure, it's the same form- but look at where you wrote the equals sign. You wrote that 405 * 2 ^ (10+1) - 1 = 263,167. That's not true.
VBCurtis is offline   Reply With Quote
Old 2020-04-20, 17:58   #46
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

3·5·83 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
Sure, it's the same form- but look at where you wrote the equals sign. You wrote that 405 * 2 ^ (10+1) - 1 = 263,167. That's not true.
Of course it is not true. That result is for the entire sequence, both sides:

The left side:

405*2^10-1
405*1024-1
414720-1
414719

The right side:

405*2^(10+1)-1
405*2^11-1
405*2048-1
829440-1
829439

414719 AND 829439 = 263167.
storm5510 is offline   Reply With Quote
Old 2020-04-20, 18:12   #47
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

11·383 Posts
Default

Quote:
Originally Posted by storm5510 View Post

414719 AND 829439 = 263167.
What does this even mean? What definition of "=" do you have in mind here?

Edit: Or, I guess, what definition of "and"? You capitalized and underlined it, so maybe that is the word in question.

Last fiddled with by VBCurtis on 2020-04-20 at 18:13
VBCurtis is offline   Reply With Quote
Old 2020-04-20, 20:53   #48
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

3·941 Posts
Default

Your AND you meant as a logical and-operation of both numbers, but that's not what the definition of a SG is and the example I gave.
Please read this article to understand.
Your calculation seems correct so far, but you misinterpreted the 'and' and so used a false algorithm to calculate the result.
kar_bon is offline   Reply With Quote
Old 2020-04-21, 14:43   #49
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

3·5·83 Posts
Default

Yes, it is a logical And.

At kar_bon's suggestion, I ran a sample PFGW ABC2 which he provided. I received the same results. I took the & in his example to mean a logical and. Thus, the confusion on my part. PFGW uses && to indicate a logical and. After reading more of the documentation, the & or | indicates multiple expressions on the same line. Each is evaluated separately. I found the below in Wikipedia:

Quote:
In number theory, a prime number p is a Sophie Germain prime if 2p + 1 is also prime.
It could not be more simple than this.
storm5510 is offline   Reply With Quote
Old 2020-04-21, 15:19   #50
xilman
Bamboozled!
 
xilman's Avatar
 
May 2003
Down not across

17×593 Posts
Default

Quote:
Originally Posted by storm5510 View Post
Yes, it is a logical And.

At kar_bon's suggestion, I ran a sample PFGW ABC2 which he provided. I received the same results. I took the & in his example to mean a logical and. Thus, the confusion on my part. PFGW uses && to indicate a logical and. After reading more of the documentation, the & or | indicates multiple expressions on the same line. Each is evaluated separately. I found the below in Wikipedia:


It could not be more simple than this.
Now I'm confused.

A logical and to me states that the two Boolean quantities to each side of the operator must both be simultaneously TRUE for the whole to be TRUE. This is exactly what is stated in the Wikipedia definition.

A bitwise and when applied to two ordered lists of Boolean quantities of equal size yields another ordered list of Booleans with the same size where each element of the resulting list is TRUE if and only if each corresponding element of the two initial lists are simultaneously TRUE. It is common, though not universal, for a list of Booleans to be represented by the binary representation of an integer. It is also common, though not universal, for a TRUE value to be represented by a 1 and a FALSE value by zero. In hardware circuitry TRUE may be represented either by a high voltage or high current, or a low voltage or low current so careful attention to context is required.
xilman is offline   Reply With Quote
Old 2020-04-21, 17:04   #51
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

3·5·83 Posts
Default

Quote:
Originally Posted by xilman View Post
Now I'm confused.

A logical and to me states that the two Boolean quantities to each side of the operator must both be simultaneously TRUE for the whole to be TRUE. This is exactly what is stated in the Wikipedia definition.

A bitwise and when applied to two ordered lists of Boolean quantities of equal size yields another ordered list of Booleans with the same size where each element of the resulting list is TRUE if and only if each corresponding element of the two initial lists are simultaneously TRUE. It is common, though not universal, for a list of Booleans to be represented by the binary representation of an integer. It is also common, though not universal, for a TRUE value to be represented by a 1 and a FALSE value by zero. In hardware circuitry TRUE may be represented either by a high voltage or high current, or a low voltage or low current so careful attention to context is required.
It can be confusing...

11001001 is decimal 201
10110101 is decimal 181
-------------
10000001 is decimal 129

201 and 181 is 129. I did this in decimal, after doing the binary above, but the determination is done in binary at the machine level. What would appear to be different, on the surface, is actually not.
storm5510 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Patterns in primes that are primitive roots / Gaps in full-reptend primes mart_r Prime Gap Searches 14 2020-06-30 12:42
A question about primes of a particular form enzocreti enzocreti 55 2019-04-27 11:10
Fascinating Lenovo memory configuration paper tServo Hardware 7 2018-11-17 16:28
Fascinating periodic sequence pairs doctornash Other Mathematical Topics 7 2018-07-14 00:06
question about a chain of primes firejuggler Math 31 2014-01-08 18:28

All times are UTC. The time now is 18:55.

Thu Jul 9 18:55:11 UTC 2020 up 106 days, 16:28, 1 user, load averages: 1.42, 1.86, 1.92

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