Bitcoin Forum
March 29, 2024, 02:38:30 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 [7] 8 9 10 »  All
  Print  
Author Topic: [XPM] Primecoin Record Books  (Read 34558 times)
Lauda
Legendary
*
Offline Offline

Activity: 2674
Merit: 2965


Terminated.


View Profile WWW
July 25, 2013, 08:23:28 AM
 #121

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

"The Times 03/Jan/2009 Chancellor on brink of second bailout for banks"
😼 Bitcoin Core (onion)
1711679910
Hero Member
*
Offline Offline

Posts: 1711679910

View Profile Personal Message (Offline)

Ignore
1711679910
Reply with quote  #2

1711679910
Report to moderator
1711679910
Hero Member
*
Offline Offline

Posts: 1711679910

View Profile Personal Message (Offline)

Ignore
1711679910
Reply with quote  #2

1711679910
Report to moderator
1711679910
Hero Member
*
Offline Offline

Posts: 1711679910

View Profile Personal Message (Offline)

Ignore
1711679910
Reply with quote  #2

1711679910
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1711679910
Hero Member
*
Offline Offline

Posts: 1711679910

View Profile Personal Message (Offline)

Ignore
1711679910
Reply with quote  #2

1711679910
Report to moderator
1711679910
Hero Member
*
Offline Offline

Posts: 1711679910

View Profile Personal Message (Offline)

Ignore
1711679910
Reply with quote  #2

1711679910
Report to moderator
1711679910
Hero Member
*
Offline Offline

Posts: 1711679910

View Profile Personal Message (Offline)

Ignore
1711679910
Reply with quote  #2

1711679910
Report to moderator
CoinBuzz
Sr. Member
****
Offline Offline

Activity: 490
Merit: 250



View Profile
July 25, 2013, 06:13:35 PM
 #122

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 ?

Join ASAP: FREE BITCOIN
AgentME
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
July 25, 2013, 06:36:52 PM
 #123

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.
jimoc
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
July 26, 2013, 01:31:39 PM
 #124

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.
mechs
Full Member
***
Offline Offline

Activity: 210
Merit: 100



View Profile
July 27, 2013, 05:31:31 AM
 #125

Would be great if we could get primecoin the news somehow.
Duffer1
Full Member
***
Offline Offline

Activity: 227
Merit: 100



View Profile
July 29, 2013, 04:42:34 AM
 #126

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 <record_holding_address>

There isn't a quicker way to do this? Tongue
mechs
Full Member
***
Offline Offline

Activity: 210
Merit: 100



View Profile
July 29, 2013, 04:53:15 AM
 #127

Any new records this weekend?
jimoc
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
July 29, 2013, 01:42:34 PM
 #128

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.

mechs
Full Member
***
Offline Offline

Activity: 210
Merit: 100



View Profile
July 29, 2013, 02:36:30 PM
 #129

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.
jimoc
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
July 29, 2013, 02:57:34 PM
 #130


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
one4many
Hero Member
*****
Offline Offline

Activity: 516
Merit: 500



View Profile
July 29, 2013, 03:55:40 PM
 #131

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
laughingbear
Deflationary champion
Hero Member
*****
Offline Offline

Activity: 624
Merit: 500


www.cryptobetfair.com


View Profile WWW
July 29, 2013, 04:00:01 PM
 #132

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 <record_holding_address>

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?
Clark
Hero Member
*****
Offline Offline

Activity: 548
Merit: 502


So much code.


View Profile WWW
July 29, 2013, 04:29:04 PM
 #133

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 = '<user>'
PASS = '<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.

Petr1fied
Hero Member
*****
Offline Offline

Activity: 630
Merit: 502


View Profile
July 29, 2013, 05:40:57 PM
Last edit: July 29, 2013, 06:04:58 PM by Petr1fied
 #134


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.
Sunny King (OP)
Legendary
*
Offline Offline

Activity: 1205
Merit: 1010



View Profile WWW
July 29, 2013, 10:05:23 PM
 #135

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
Sunny King (OP)
Legendary
*
Offline Offline

Activity: 1205
Merit: 1010



View Profile WWW
July 29, 2013, 10:39:36 PM
 #136

Does it tell you if the blocks are yours?

Not yet, but it will be added later.
bcp19
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500



View Profile
July 29, 2013, 10:49:50 PM
 #137

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?

I do not suffer fools gladly... "Captain!  We're surrounded!"
I embrace my inner Kool-Aid.
laughingbear
Deflationary champion
Hero Member
*****
Offline Offline

Activity: 624
Merit: 500


www.cryptobetfair.com


View Profile WWW
July 30, 2013, 12:58:37 AM
 #138

Does it tell you if the blocks are yours?

Not yet, but it will be added later.

Thanks, its too complicated for the average miner to figure out if they are record holders.  An easy command to do this would be great!
Sunny King (OP)
Legendary
*
Offline Offline

Activity: 1205
Merit: 1010



View Profile WWW
July 30, 2013, 04:48:50 AM
 #139

Now listprimerecords shows an 'ismine' field which indicates whether you are the miner of it.
It would be included in v0.1.2 release build soon!
mechs
Full Member
***
Offline Offline

Activity: 210
Merit: 100



View Profile
July 30, 2013, 04:52:52 AM
 #140

Now listprimerecords shows an 'ismine' field which indicates whether you are the miner of it.
It would be included in v0.1.2 release build soon!
Are you going to improve mining efficiency at all in the next release build?
Pages: « 1 2 3 4 5 6 [7] 8 9 10 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!