A optimized pool miner for primecoin