This is very much not what distributed consensus is. You don't "work on the
same hard math problem" and you don't get "a reward to encourage further
problem solving". Consensus is agreeing on a value among (almost) all protocol
participants, and "distributed consensus" is proper technical term, not
a vague definition by hand waving like "object oriented programming". Read
about Byzantine Generals problem first.