Pages:
Author

Topic: [XPM] Primecoin Record Books - page 4. (Read 34592 times)

hero member
Activity: 532
Merit: 500
July 29, 2013, 06:49:50 PM
Does it tell you if the blocks are yours?

Not yet, but it will be added later.
What happens with pool miners?  Does the pool get the credit?
legendary
Activity: 1205
Merit: 1010
July 29, 2013, 06:39:36 PM
Does it tell you if the blocks are yours?

Not yet, but it will be added later.
legendary
Activity: 1205
Merit: 1010
July 29, 2013, 06:05:23 PM
FYI I just pushed a new command 'listprimerecords' to repo for checking the records.

This gives primecoin internal records, by length (simultaneous primes) or by type.

To find records of simultaneous 10-primes:

listprimerecords 10

To find records of a given type:

listprimerecords 11 1CC
listprimerecords 11 2CC
listprimerecords 10 TWN
hero member
Activity: 630
Merit: 502
July 29, 2013, 01:40:57 PM

Are you submitting these results to the relevant organization which track them?  Would be great publicity for primecoin.

As soon as I figure out how to show them properly I will.
I have no idea how to actually show the numbers themselves Smiley


My block crawler displays them:

http://primeblock.kicks-ass.net/

If you want the source, you can download it here. You need a primecoin daemon and need to add your daemon connection information in bc_daemon.php, you also need to ensure you have the GMP extension loaded.

I'm sure you could convert the code to some other language easy enough also, the relevant code is in bc_layout.php.
hero member
Activity: 548
Merit: 502
So much code.
July 29, 2013, 12:29:04 PM
is there a .conf entry that will auto sign all of my mined blocks?

No, but the Python code I posted could be modified to check against your current addresses and make those signatures automatically  Wink

Code:
# worldrecords.py
#
# Created by Clark Moody. Public domain.
#
# Show some love: AMLVXfPytaGv7Cx8X5ZnMtqQrQhAbtyNtr
#
#
from jsonrpc import ServiceProxy

import json

USER = ''
PASS = ''
PORT = 9912


fname = 'worldrecords.txt'

checkMine = True
myName = 'Clark Moody'

# Searching for new world records
def main():
ip = '127.0.0.1'
addy = 'http://%s:%s@%s:%i' % (USER,PASS,ip,PORT)
p = ServiceProxy(addy)

# http://users.cybercity.dk/~dsl522332/math/Cunningham_Chain_records.htm
# http://www.primenumbers.net/Henri/fr-us/BiTwinRec.htm

records = {
# Length 6
'1CC06':{
'digits':633,
'block':None
},
'2CC06':{
'digits':475,
'block':None
},
# BiTwin chain of 6 primes, 2 links
'TWN06':{
'digits':399,
'block':None
},
# Length 7
'1CC07':{
'digits':356,
'block':None
},
'2CC07':{
'digits':251,
'block':None
},
# Length 8
'1CC08':{
'digits':186,
'block':None
},
'2CC08':{
'digits':224,
'block':None
},
# BiTwin chain of 8 primes, 3 links
'TWN08':{
'digits':177,
'block':None
},
# Length 9
'1CC09':{
'digits':185,
'block':None
},
'2CC09':{
'digits':111,
'block':None
},
# Length 10
'1CC0a':{
'digits':99,
'block':None
},
'2CC0a':{
'digits':109,
'block':None
},
# BiTwin chain of 10 primes, 4 links
'TWN0a':{
'digits':92,
'block':None
},
# Length 11
'1CC0b':{
'digits':50,
'block':None
},
'2CC0b':{
'digits':63,
'block':None
},
# Length 12
'1CC0c':{
'digits':42,
'block':None
},
'2CC0c':{
'digits':62,
'block':None
},
# BiTwin chain of 12 primes, 5 links
'TWN0c':{
'digits':47,
'block':None
},
# Length 13
'1CC0d':{
'digits':39,
'block':None
},
'2CC0d':{
'digits':33,
'block':None
},
# Length 14
'1CC0e':{
'digits':25,
'block':None
},
'2CC0e':{
'digits':33,
'block':None
},
# BiTwin chain of 14 primes, 6 links
'TWN0e':{
'digits':29,
'block':None
},
# Length 15
'1CC0f':{
'digits':24,
'block':None
},
'2CC0f':{
'digits':32,
'block':None
},
# Length 16
'1CC10':{
'digits':23,
'block':None
},
'2CC10':{
'digits':28,
'block':None
},
# BiTwin chain of 16 primes, 7 links
'TWN10':{
'digits':24,
'block':None
},
# Length 17
'1CC11':{
'digits':22,
'block':None
},
'2CC11':{
'digits':25,
'block':None
},
# Length 18
'1CC12':{
'digits':None,
'block':None
},
'2CC12':{
'digits':None,
'block':None
},
# BiTwin chain of 18 primes, 8 links
'TWN12':{
'digits':24,
'block':None
}
}

# Record history
hist = {}

data = {}

try:
with open(fname, 'r') as f:
data = json.load(f)
except:
pass

height = 1

if 'height' in data:
height = data['height']

if 'records' in data:
records = data['records']

if 'hist' in data:
hist = data['hist']

blockHash = p.getblockhash(height)
block = p.getblock(blockHash)

while 'nextblockhash' in block:
chain = block['primechain'].split('.')[0]
chainlength = 0
try:
chainlength = int(chain[3:5],16)
except:
print('Error with chain: %s, Block %i' % (chain,block['height']))
origin = block['primeorigin']
digits = len(origin)
height = block['height']

newrecord = False

if chain in records:
if digits > records[chain]['digits']:
print('New World Record!')
print(' Block %i, Chain %s (%i primes), %i digits' %
(height, chain, chainlength, digits))
if records[chain]['block'] is not None:
print(' *Previous record held by Primecoin, Block %i' %
(records[chain]['block'],))
print(' Previous record: %i digits' % (records[chain]['digits']))
records[chain]['digits'] = digits
records[chain]['block'] = height
newrecord = True
else:
print('New Chain Type: %s, Block %i, %i digits' %
(chain, height, digits))
records[chain] = {
'digits':digits,
'block': height
}
newrecord = True

if newrecord:
if chain not in hist:
hist[chain] = []
hist[chain].append({'block':height, 'digits':digits})

if newrecord and checkMine:
txid = block['tx'][0]
try:
txn = p.gettransaction(txid)
addy = txn['details'][0]['address']
if AddressMine(p, addy):
print(' **** You found it! Block %i **** \n' % (height))
except:
pass


block = p.getblock(block['nextblockhash'])

print('End of block chain reached. Height: %i' % (height,))

data = {
'records': records,
'height': block['height'],
'hist': hist
}

with open(fname, 'w') as f:
json.dump(data, f)

types = ['1CC', '2CC', 'TWN']

print('\n\n=== Record History ===\n')
for t in types:
for i in range(6,20):
chain = '%s%s' % (t, hex(i)[2:].zfill(2))
if chain not in hist:
continue
print(chain)
for r in hist[chain]:
print(' Height: %6i, Digits: %3i' %
(r['block'], r['digits']))
print(' ')

print('\n\n=== Current Records ===\n')

s = '   '
for t in types:
s = '%s%7s' % (s, t)
print('%s\n' % (s,))
for i in range(6,20):
s = ' %.2i' % (i,)
for t in types:
chain = '%s%s' % (t,hex(i)[2:].zfill(2))
if chain not in records or records[chain]['digits'] is None:
s = '%s%7s' % (s,'--')
else:
if records[chain]['block'] is not None:
s = '%s%7s' % (s, ('*%i' % (records[chain]['digits'])).rjust(7))
else:
s = '%s%7i' % (s, records[chain]['digits'])
print(s)
print('\n*Found by Primecoin network\n')

def AddressMine(P, addy):
print('Attempting to sign message for address %s' % addy)
msg = '%s owns this address: %s' % (myName, addy)
try:
sig = P.signmessage(addy, msg)
except:
return False
else:
print('Signed message:\n%s\nwith address: %s\nSignature:\n%s' %
(msg,addy,sig))
return True

if __name__ == '__main__':
main()

NOTE: Your wallet will need to be unlocked while you run this code. A simple modification to the script could unlock your wallet for you, but then you would be saving your wallet password in the source... Also, you might want to change your name on line 20 (unless you want to sign your world record over to me  Grin)

NOTE 2: This new code prints out the history of records found by Primecoin. To get a complete picture, you'll need to delete your existing worldrecords.txt and re-scan from the beginning of the block chain.
hero member
Activity: 622
Merit: 500
www.cryptobetfair.com
July 29, 2013, 12:00:01 PM
So for the miners of #2044 and #5355 please step up and give us a proof you are the miner and the name you would like to be written for the record book Wink

To look up if you are the lucky miner who mined a new world record you can go to help->debug window->console and type
validateaddress

There isn't a quicker way to do this? Tongue

I agree... there should be an easy way to scan all your found blocks to see if they are record holders.  esp with the constant finding of new records.  who can keep up with all of this, much less enter in every new address against these records.

is there a .conf entry that will auto sign all of my mined blocks?
hero member
Activity: 516
Merit: 500
July 29, 2013, 11:55:40 AM
If primecoin proof of work is just probability of being prime, so how can you prove that a found blocked is really a prime number ?

I like your avatar  Cheesy
newbie
Activity: 30
Merit: 0
July 29, 2013, 10:57:34 AM

Are you submitting these results to the relevant organization which track them?  Would be great publicity for primecoin.

As soon as I figure out how to show them properly I will.
I have no idea how to actually show the numbers themselves Smiley
full member
Activity: 210
Merit: 100
July 29, 2013, 10:36:30 AM
And still more records are falling :

Code:
New World Record!
 Block 78915, Chain 2CC0a (10 primes), 123 digits
 *Previous record held by Primecoin, Block 61999
 Previous record: 115 digits
New World Record!
 Block 79087, Chain 1CC0b (11 primes), 113 digits
 *Previous record held by Primecoin, Block 76601
 Previous record: 108 digits
New World Record!
 Block 79349, Chain 2CC09 (9 primes), 167 digits
 *Previous record held by Primecoin, Block 5355
 Previous record: 158 digits
New World Record!
 Block 83550, Chain 2CC0a (10 primes), 127 digits
 *Previous record held by Primecoin, Block 78915
 Previous record: 123 digits
End of block chain reached.


A few more to add :
Code:
New World Record!
 Block 84106, Chain 1CC0b (11 primes), 116 digits
 *Previous record held by Primecoin, Block 79087
 Previous record: 113 digits
New World Record!
 Block 85090, Chain TWN0b (11 primes), 112 digits
 *Previous record held by Primecoin, Block 71419
 Previous record: 106 digits
New World Record!
 Block 85429, Chain TWN0a (10 primes), 138 digits
 *Previous record held by Primecoin, Block 76809
 Previous record: 126 digits
New World Record!
 Block 86955, Chain 1CC0a (10 primes), 125 digits
 *Previous record held by Primecoin, Block 64363
 Previous record: 123 digits
New World Record!
 Block 87510, Chain 2CC0b (11 primes), 109 digits
 *Previous record held by Primecoin, Block 71765
 Previous record: 108 digits
End of block chain reached.

Are you submitting these results to the relevant organization which track them?  Would be great publicity for primecoin.
newbie
Activity: 30
Merit: 0
July 29, 2013, 09:42:34 AM
And still more records are falling :

Code:
New World Record!
 Block 78915, Chain 2CC0a (10 primes), 123 digits
 *Previous record held by Primecoin, Block 61999
 Previous record: 115 digits
New World Record!
 Block 79087, Chain 1CC0b (11 primes), 113 digits
 *Previous record held by Primecoin, Block 76601
 Previous record: 108 digits
New World Record!
 Block 79349, Chain 2CC09 (9 primes), 167 digits
 *Previous record held by Primecoin, Block 5355
 Previous record: 158 digits
New World Record!
 Block 83550, Chain 2CC0a (10 primes), 127 digits
 *Previous record held by Primecoin, Block 78915
 Previous record: 123 digits
End of block chain reached.


A few more to add :
Code:
New World Record!
 Block 84106, Chain 1CC0b (11 primes), 116 digits
 *Previous record held by Primecoin, Block 79087
 Previous record: 113 digits
New World Record!
 Block 85090, Chain TWN0b (11 primes), 112 digits
 *Previous record held by Primecoin, Block 71419
 Previous record: 106 digits
New World Record!
 Block 85429, Chain TWN0a (10 primes), 138 digits
 *Previous record held by Primecoin, Block 76809
 Previous record: 126 digits
New World Record!
 Block 86955, Chain 1CC0a (10 primes), 125 digits
 *Previous record held by Primecoin, Block 64363
 Previous record: 123 digits
New World Record!
 Block 87510, Chain 2CC0b (11 primes), 109 digits
 *Previous record held by Primecoin, Block 71765
 Previous record: 108 digits
End of block chain reached.

full member
Activity: 210
Merit: 100
July 29, 2013, 12:53:15 AM
Any new records this weekend?
full member
Activity: 227
Merit: 100
July 29, 2013, 12:42:34 AM
So for the miners of #2044 and #5355 please step up and give us a proof you are the miner and the name you would like to be written for the record book Wink

To look up if you are the lucky miner who mined a new world record you can go to help->debug window->console and type
validateaddress

There isn't a quicker way to do this? Tongue
full member
Activity: 210
Merit: 100
July 27, 2013, 01:31:31 AM
Would be great if we could get primecoin the news somehow.
newbie
Activity: 30
Merit: 0
July 26, 2013, 09:31:39 AM
And still more records are falling :

Code:
New World Record!
 Block 78915, Chain 2CC0a (10 primes), 123 digits
 *Previous record held by Primecoin, Block 61999
 Previous record: 115 digits
New World Record!
 Block 79087, Chain 1CC0b (11 primes), 113 digits
 *Previous record held by Primecoin, Block 76601
 Previous record: 108 digits
New World Record!
 Block 79349, Chain 2CC09 (9 primes), 167 digits
 *Previous record held by Primecoin, Block 5355
 Previous record: 158 digits
New World Record!
 Block 83550, Chain 2CC0a (10 primes), 127 digits
 *Previous record held by Primecoin, Block 78915
 Previous record: 123 digits
End of block chain reached.
member
Activity: 84
Merit: 10
July 25, 2013, 02:36:52 PM
If primecoin proof of work is just probability of being prime, so how can you prove that a found blocked is really a prime number ?

I think the chance of the primes not actually being primes is supposed to be extremely small, but I haven't looked into it. I know that someone double-checked the first couple records at least.
sr. member
Activity: 490
Merit: 250
July 25, 2013, 02:13:35 PM
If primecoin proof of work is just probability of being prime, so how can you prove that a found blocked is really a prime number ?
legendary
Activity: 2674
Merit: 2965
Terminated.
July 25, 2013, 04:23:28 AM
Happy to know Dirk likes primecoin and I just sent him a note. I have also contacted Henri and Jens as well  Smiley

Most people only know about the largest known prime record (aka the k=1 record on Jens' list) which is dominated by GIMPS (Mersennes). That's why Jens' record book is important so that people realize that Mersennes are not the only primes of interest to mathematicians.
Nice, good work keep it up Smiley
sr. member
Activity: 378
Merit: 255
July 24, 2013, 09:32:12 PM
Bi-Twin Chain
TWN0a (length 10 or 4-link) New World Records

Code:
block  digits  miner       address                              origin 
76809  126*    anonymous   AYdBWCsu4CQG6ZEbVWGe4oU9oyK3fUnzPm   160119522069821195835891275392518115341345841109408574791359778924664436202474106714742688904833455303202422814762675464936800
(*) Current world record for any simultaneous primes

Hey, alright!

Code:
AYdBWCsu4CQG6ZEbVWGe4oU9oyK3fUnzPm "rethaw owns this address"
H8hmwqW8R6kfAJOzt8OO1DZOEzApyWBi0WxHRm05eZ+2S/QnrSW50Kaa6SOwBTmuFPISYEOtFalKpCkSPGa+Jbk=
full member
Activity: 314
Merit: 100
July 24, 2013, 09:08:41 PM
I found a 2CC0a block!  

79590  AezMwyLP2hpT3yh3LDZkydqkpsrTg7Eyfk

How do I prove it?

Congrats glongsword, your block is 1st-equal with block 78915...

You can verify you own an address with the signmessage command:
Code:
primecoind signmessage AezMwyLP2hpT3yh3LDZkydqkpsrTg7Eyfk "glongsword owns this address - or whatever message you want"

If you're using primecoin-qt then go to Help > Debug window > Console and run:
Code:
signmessage AezMwyLP2hpT3yh3LDZkydqkpsrTg7Eyfk "glongsword owns this address - or whatever message you want"

Post the address, message, and resulting signature here and it's sufficient proof that you can claim discovery of the 2CC0a prime of 123 digits.

Okay, cool, here's what I get:

Quote
21:05:53
signmessage AezMwyLP2hpT3yh3LDZkydqkpsrTg7Eyfk "This is glongsword's Primecoin address."


21:05:53
IBFS3OVUwtmk0HI76RXTRxJLM/y2NWFeugvORENMtOvAGQp4rJIKqP9lmurHhZr3I2zYr/TzxXQfV8Eomh6ULxo=

Thanks for the help!
member
Activity: 70
Merit: 10
July 24, 2013, 08:53:00 PM
I found a 2CC0a block!  

79590  AezMwyLP2hpT3yh3LDZkydqkpsrTg7Eyfk

How do I prove it?

Congrats glongsword, your block is 1st-equal with block 78915...

You can verify you own an address with the signmessage command:
Code:
primecoind signmessage AezMwyLP2hpT3yh3LDZkydqkpsrTg7Eyfk "glongsword owns this address - or whatever message you want"

If you're using primecoin-qt then go to Help > Debug window > Console and run:
Code:
signmessage AezMwyLP2hpT3yh3LDZkydqkpsrTg7Eyfk "glongsword owns this address - or whatever message you want"

Post the address, message, and resulting signature here and it's sufficient proof that you can claim discovery of the 2CC0a prime of 123 digits.
Pages:
Jump to: