checking…

EUCLID.

A token you can only mine by finding prime numbers. No oracle, no owner, no signing key: the contract checks every prime itself. 90% of the supply exists only through mining.

Around 300 BC Euclid proved that the primes never run out. This is an experiment built on that proof.

Live from the contract

The chalkboard

Primes found
—
 
Difficulty
—
 
Reward now
—
 
Minted
—
 
Current seed — the next prime must hash with this
—
Latest primes · each tile is the prime's 256 bits
No primes to show yet.
Proof of Prime, in this tab

Mine from your browser

Your CPU searches for a 256-bit prime whose hash with the current seed starts with enough zero bits. When it finds one, your wallet signs a commit, waits one block, and signs the reveal. Two transactions, about 250,000 gas in total.

Best hash this round · leading zero bits (outlined = needed)
Speed0candidates / s
Tried0this round
Threads0web workers

A browser is slow next to a dedicated miner, and the reveal goes through your wallet's normal RPC, where a block builder could see it. This is for learning and for fun: for serious mining use the reference miner below with a private RPC.

Uniswap v4 · launch pool

Trade

10% of the supply (2,100,000 EUCLID) was minted once at deploy and put into a Uniswap v4 pool as tokens only, no ETH: buyers bring the ETH. The other 90% can only be mined.

The pool has a hook that charges a fee in ETH: 85% when trading opens, falling to 1% over 20 minutes to stop sniper bots, then 1% forever. Fees go to the project wallet. The hook cannot pause trading, block anyone or change the fee.

The Uniswap app does not route through pools whose hook takes a fee, so trade here or with a tool that supports v4 hooks. Check the contract address against the one in the footer and on @ProofOfPrime.

You receive (est., EUCLID)
—
 
Slippage %
There is no pool yet.
Proof of Prime

How mining works

A seed nobody knew

The contract holds a seed. The first one mixes in the hash of the block before the deploy, so not even the deployer could search early. Every accepted prime moves it.

Search

Miners look for a 256-bit prime p such that keccak256(seed, p) starts with N zero bits — the difficulty. Since the seed is new each round, nothing can be precomputed.

Commit

The miner first publishes only a hash of (address, prime, salt). Nobody watching the mempool can copy the prime.

Reveal

One block later the miner sends the prime. The contract checks it is 256 bits, meets the difficulty, was never used, and is prime (Baillie-PSW test, run on-chain).

Reward, then a new seed

If everything holds, the miner is paid and the seed changes. Every 8 primes the difficulty moves one bit to aim for one prime every 10 minutes.

Rules, as written in the contract

The numbers

Reward per primeset at deploy
Halvingevery 10,000 primes (~69 days at target pace)
Supply capset at deploy
Launch pool10% minted once at deploy into the Uniswap v4 pool; 90% mined only
Pool fee85% at open → 1% after 20 min, then 1%, in ETH, to the project wallet
Target pace1 prime every 10 minutes
Difficulty adjustmentevery 8 primes: +1 bit if they came in under half the target time, −1 bit if over twice
Commit → revealat least 1 block, at most 200 blocks
Owner / admin / upgradesnone on the token. The launcher could only create the pool and open trading, once each
Contractnot deployed yet
Read this before anything else

The honest part

It is a hardware race

Whoever brings more computing power finds more primes. A tuned GPU miner will beat a laptop running the reference miner by a wide margin.

MEV can steal a reveal

A block builder could hold back your reveal and claim that prime. Send reveals through a private RPC.

The primality test is probabilistic

Baillie-PSW is not a proof. No number is known to fool it, and none exists below 264, but nobody has proven one can't exist.

Nothing can be fixed later

The contract has no owner and cannot be upgraded. Whatever is deployed stays exactly as it is, bugs included.

Emission is front-loaded

Rewards halve every 10,000 primes, so about half of everything that will ever exist is mined in the first ~2–3 months.

The start is thin

The pool opens around a $4,000 market cap for the tokens in it. A buy of a few hundred dollars moves the price a lot, both ways.

It is an experiment

Not an investment, no promise of value. The only allocation is the 10% in the launch pool. Mining costs gas (≈200,000 per prime) and electricity. Only spend what you're fine losing.

Run the reference miner

Mine a prime

Node.js miner, open source. It searches, commits, waits one block and reveals. Use a fresh wallet with a little ETH for gas.

cd miner && npm install
RPC_URL=<your private RPC> PRIME_CONTRACT=<not deployed yet> MINER_KEY=<fresh key> ROUNDS=3 node miner.mjs