Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
What is Primecoin?
Primecoin is an innovative cryptocurrency, a form of digital currency secured by cryptography and issued through a decentralized mining market. Derived from Satoshi Nakamoto's Bitcoin, Primecoin introduces an unique form of proof-of-work based on prime numbers, and is the first cryptocurrency in the world designed with scientific computing as its work.
What are the Advantages of Primecoin?
The innovative prime proof-of-work in Primecoin not only provides security and minting to the network, but also generates a special form of prime number chains of interest to mathematical research. Thus primecoin network is energy-multiuse, compared to bitcoin network. Primecoin is designed to sustain a prosperous mining market and high level of security, while maintaining good scarcity property like gold. Primecoin also processes payment transactions 10x faster than bitcoin network.
What is the Scientific Value Behind Primecoin's Work?
Primecoin network searches for special prime number chains known as Cunningham chains and bi-twin chains. The distribution of these prime chains are not well-understood currently as even for its simplest case twin primes their infinite existence is not proven. The distribution of primes has been one of the most important discoveries in arithmetic, and the study of prime chains traces its lineage to the work of Riemann and prime number theorem, with connections to the deeper nature of the seemingly random pattern of prime distribution. Prime distribution is not just an abstract interest of mathematicians. Riemann's study revealed connections between Riemann zeta function and prime distribution, whereas later on Riemann zeta function has been shown to be highly relevant in other scientific disciplines such as physics, thus the study of prime distribution is an important part of the foundation of modern sciences.
References on the purpose of searching for primes and prime patterns in general:
- Structure and randomness in the prime numbers - presentation by Terence Tao
- Why do people find primes
- Ask Ars: Why spend time and money finding new prime numbers?
What does the Primecoin Currency Symbol Represent?
The currency symbol of primecoin is the greek letter psi (Ψ). This letter is chosen as a tribute to Riemann, as its shape symbolizes the Riemann zeta function (there is a graphical rendering used in Primecoin-Qt Windows setup screen). The horizontal bar not only standardizes to currency symbol convention, but also symbolizes one of the highest jewels of math - Riemann hypothesis.
How Do I Check the Primes in the Block Chain?
In the 'getblock' (can be accessed through Qt debug window/console) 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 prime chain type and length:
- 1CC -> Cunningham chain of 1st kind
- 2CC -> Cunningham chain of 2nd kind
- TWN -> bi-twin chain
The length part (displayed in hexadecimal) 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.
You can also refers to Petr1fied's crawler site to see the list of primes on block with primality testing.
How Do I Mine Primecoin?
I Mined Some Primecoins, How Can I Find Out If I Broke Some World Records Or Not?
There is a 'listprimerecords' command since v0.1.2. It can be accessed from Qt debug window/console. There are two modes of this command, one lists records of any prime chain types, one lists records of a specific prime chain type.
To list records of length 11 prime chains of any type in Primecoin:
To list records of length 10 prime chains of specific type in Primecoin:
listprimerecords 10 1CC
listprimerecords 10 2CC
listprimerecords 10 TWN
In the output of listprimerecords, it shows the date, block height, digits, origin and its primorial form of all the record prime chains in Primecoin block chain. There is also an 'ismine' field for each record, it would show value 'true' if the miner key belongs to your wallet.
Refer to world records for the current records and milestones achieved by Primecoin network.
The world records for simultaneous primes and prime chains are maintained at