Refined Primecoin block reward formula