I ike Primecoin, however, I do not understand how the proof of work works.
Say I see the current blopckchain. I am a miner. I see the next block of pending transactions. What do I do? How, exactly, do I produce a proof of work that validates the pending transactions as well as finds a chaib of cunningham primes?
Relevant soure code if avilable would also be good.