Title: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: fran2k on July 07, 2013, 10:31:54 PM How we extract the new primes from the Primecoin Blockchain?
Someone understands how this research the coin does can be obtained, it's not clear for me from the Primecoin whitepaper. Title: Re: [XRP] So... How we extract the new primes from the Primecoin Blockchain? Post by: Eli0t on July 07, 2013, 11:07:39 PM try this http://www2.crypto-expert.com/primecoin/index.php?block_hash=0ce7113c421bb5f9c046b23598cd2c5e1f9b03cb4d2182ce78a2eba11f4712f1
Title: Re: [XRP] So... How we extract the new primes from the Primecoin Blockchain? Post by: fran2k on July 07, 2013, 11:12:28 PM try this http://www2.crypto-expert.com/primecoin/index.php?block_hash=0ce7113c421bb5f9c046b23598cd2c5e1f9b03cb4d2182ce78a2eba11f4712f1 So? Title: Re: [XRP] So... How we extract the new primes from the Primecoin Blockchain? Post by: ahmed_bodi on July 07, 2013, 11:16:31 PM as i posted in the main thread the values there might be prime numbers generated however im not totally sure, ill check with sunny next time hes online though. If we do manage to figure it out, itll be added to the block explorer like that
Title: Re: [XRP] So... How we extract the new primes from the Primecoin Blockchain? Post by: Loktera on July 07, 2013, 11:45:23 PM It's XPM, XRP is Ripple.
Title: Re: [XRP] So... How we extract the new primes from the Primecoin Blockchain? Post by: fran2k on July 08, 2013, 12:06:24 AM as i posted in the main thread the values there might be prime numbers generated however im not totally sure, ill check with sunny next time hes online though. If we do manage to figure it out, itll be added to the block explorer like that Which variable means the prime number? Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: ahmed_bodi on July 08, 2013, 12:08:10 AM right ive talked to him, the 2 prime boxes that are on my explorer are used to calculate it
Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: Sunny King on July 08, 2013, 12:21:55 AM Quoted from my tutorial in main thread
Primes Tutorial To understand the primes stored in block chain, one should read my design paper regarding prime chains. In the 'getblock' output, there is a 'primeorigin' field. This is the origin of prime chain described in design paper, from which you can derive the prime numbers in the chain. Another field 'primechain' describe this primechain type and length: 1CC -> Cunningham chain of 1st kind 2CC -> Cunningham chain of 2nd kind TWN -> bi-twin chain The length part consists of an integral length and a fractional length. The integral length is what we understand normally about chain length, the fractional part is a score system assigned to the prime chain in order to make difficulty adjustment continuous. Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: rethaw on July 08, 2013, 12:30:31 AM Quoted from primecoin genesis block:
Code: "primechain" : "TWN06.e0d80e", Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: ahmed_bodi on July 08, 2013, 12:31:22 AM yeah ive got all that in my block explorer
just gotta figure out how to convert it into a prime number EDIT:Anyone willing to provide me the code to convert those into a prime number for the block explorer, will get their name listed on the page for donations Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: fran2k on July 08, 2013, 01:52:23 AM Quoted from primecoin genesis block: Code: "primechain" : "TWN06.e0d80e", "primeorigin" clearly isn't a prime. yeah ive got all that in my block explorer just gotta figure out how to convert it into a prime number EDIT:Anyone willing to provide me the code to convert those into a prime number for the block explorer, will get their name listed on the page for donations I hope Sunny is releasing soon and updated whitepaper or more details, I don't understand why so much silence. Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: fran2k on July 08, 2013, 01:53:00 AM Quoted from primecoin genesis block: Code: "primechain" : "TWN06.e0d80e", "primeorigin" clearly isn't a prime. yeah ive got all that in my block explorer just gotta figure out how to convert it into a prime number EDIT:Anyone willing to provide me the code to convert those into a prime number for the block explorer, will get their name listed on the page for donations I hope Sunny is releasing soon an updated whitepaper or more details, I don't understand why so much silence. Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: Sunny King on July 08, 2013, 02:39:39 AM origin is explained in design paper ;)
Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: rethaw on July 08, 2013, 02:47:27 AM yeah ive got all that in my block explorer just gotta figure out how to convert it into a prime number EDIT:Anyone willing to provide me the code to convert those into a prime number for the block explorer, will get their name listed on the page for donations This is a bitwin chain. Both n-1 and n+1 are prime, as well as 2n-1 and 2n+1. This chain is 6 long, so if I understand correctly: p === primeorigin p1 = p + 1 p2 = p - 1 p3 = p * 2 + 1 p4 = p * 2 - 1 p5 = p * 4 + 1 p6 = p * 4 - 1 and so on. In python: Code: def primeChain(origin, length): Or as a list comprehension: Code: primes = [[p * pow(2,i/2) + 1, p * pow(2,i/2) - 1] for i in range(length)] Gives:
See for yourself! (http://www.wolframalpha.com/input/?i=is+35863811984081628257457566308544261074682171636854659262965242272043787582651522405916324919+prime) And happy priming, I still haven't found a block :/ EDIT: added code snippet EDIT: helpful or interesting? send primecoins ASxa5AHJFHnpr47BMwKEZ4zksK57AJT6FT Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: claycoins on July 08, 2013, 02:49:43 AM as far as I can tell the generation of prime numbers is just a replacement for the proof of work, it is not meant to try and generate new prime numbers that have yet to be discovered.
Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: rethaw on July 08, 2013, 03:27:52 AM as far as I can tell the generation of prime numbers is just a replacement for the proof of work, it is not meant to try and generate new prime numbers that have yet to be discovered. It is conjectured that there are arbitrarily long prime chains. Primecoin is exploring this territory. Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: coinerd on July 08, 2013, 03:34:33 AM just gotta figure out how to convert it into a prime number There is no "prime number". It appears the proof of work certificate is evidence that you identified a "prime chain" of acceptable type which is divisible by the block header hash. How we extract the new primes from the Primecoin Blockchain? Someone understands how this research the coin does can be obtained, it's not clear for me from the Primecoin whitepaper. This is not research. It's just busy work. I hope Sunny is releasing soon an updated whitepaper or more details, I don't understand why so much silence. The real explanation for this coin is on the PPCoin forums ... Quote from: Sunny King In a few years that chart would have many different types of proof-of-work, bitcoin's mining share would be further reduced. This means the relative security against 51% attack is going to be weakened for each pure proof-of-work cryptocurrency. Primecoin may help speed up this process, taking a significant piece of mining market while attracting a larger user base to both primecoin and ppcoin. I believe it could strengthen our positioning against litecoin and other potential competitions. http://www.ppcointalk.org/index.php?topic=288.msg1557#msg1557 The confusion surrounding the coin is very helpful to the goal, I think. Acting mysterious doesn't hurt any either. If there was scientific value to it he would be proud and careful to explain it clearly... Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: Petr1fied on July 08, 2013, 04:38:19 PM yeah ive got all that in my block explorer just gotta figure out how to convert it into a prime number EDIT:Anyone willing to provide me the code to convert those into a prime number for the block explorer, will get their name listed on the page for donations This is a bitwin chain. Both n-1 and n+1 are prime, as well as 2n-1 and 2n+1. This chain is 6 long, so if I understand correctly: p === primeorigin p1 = p + 1 p2 = p - 1 p3 = p * 2 + 1 p4 = p * 2 - 1 p5 = p * 4 + 1 p6 = p * 4 - 1 and so on. In python: Code: def primeChain(origin, length): Or as a list comprehension: Code: primes = [[p * pow(2,i/2) + 1, p * pow(2,i/2) - 1] for i in range(length)] Gives:
See for yourself! (http://www.wolframalpha.com/input/?i=is+35863811984081628257457566308544261074682171636854659262965242272043787582651522405916324919+prime) And happy priming, I still haven't found a block :/ EDIT: added code snippet EDIT: helpful or interesting? send primecoins ASxa5AHJFHnpr47BMwKEZ4zksK57AJT6FT Any idea how this works in relation to the 1CC and 2CC versions. It's my understanding that 1CC should use: ((previous number * 2) + 1) And 2CC should use: ((previous number * 2) - 1) But it doesn't seem to work. Take for example block 2003: Prime Chain: 1CC08.339b77 Prime Origin: 9615572543071231184837168360004814554467140239322370722813195196221920358459324 7487894105484172550 Code: [0] => Array NOTE: score is the result of the php function gmp_prob_prime() (http://uk3.php.net/gmp_prob_prime) which seems to be pretty reliable for outputting 1 for the correct numbers in the bitwin results. This can be important when there are an odd number of primes in the chain. ;) Any idea where I'm going wrong here? Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: Sunny King on July 08, 2013, 04:44:29 PM 1CC is the chain below center numbers, 2CC is the chain above center numbers.
So you should substract 1 from the center numbers (keep doubling from origin) for 1CC. Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: rethaw on July 08, 2013, 05:02:08 PM 1CC is the chain below center numbers, 2CC is the chain above center numbers. So you should substract 1 from the center numbers (keep doubling from origin) for 1CC. http://en.wikipedia.org/wiki/Cunningham_chain (http://en.wikipedia.org/wiki/Cunningham_chain) If I'm reading this correctly its actually the other way around. Cunningham Chain of the first type: http://upload.wikimedia.org/math/c/e/2/ce25bf0879e3ac9c8a197dc98a8be828.png Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: Sunny King on July 08, 2013, 05:15:42 PM 1CC is the chain below center numbers, 2CC is the chain above center numbers. So you should substract 1 from the center numbers (keep doubling from origin) for 1CC. http://en.wikipedia.org/wiki/Cunningham_chain If I'm reading this correctly its actually the other way around. Cunningham Chain of the first type: http://upload.wikimedia.org/math/c/e/2/ce25bf0879e3ac9c8a197dc98a8be828.png Yes, but that's not contradictory. (n-1) * 2 + 1 = (2n - 1) From center number you substract one. From previous prime number you double and add one. Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: Petr1fied on July 08, 2013, 05:18:29 PM 1CC is the chain below center numbers, 2CC is the chain above center numbers. So you should substract 1 from the center numbers (keep doubling from origin) for 1CC. OK got it, I was going in the wrong direction. ;) Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: Petr1fied on July 08, 2013, 05:49:33 PM I think I have it working as it should in Block Crawler now:
http://primeblock.kicks-ass.net/block_crawler.php Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: rethaw on July 08, 2013, 09:44:43 PM I think I have it working as it should in Block Crawler now: http://primeblock.kicks-ass.net/block_crawler.php Neat! Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: defaced on July 08, 2013, 09:52:16 PM Now i see.
Title: Re: [XRM] So... How we extract the new primes from the Primecoin Blockchain? Post by: sevenseals on July 11, 2013, 10:09:37 PM what is prime calculation good for?
|