Let's build a small distributed system to mine a new cryptocurrency and become millionaires in ElixirCoins!
An ElixirCoin is a
{secret_string, positive_integer}
pair for which the MD5 digest of the concatenation of the secret string with the given integer is a hash whose hexadecimal representation starts with at least 5 consecutive zeroes.
For instance:
{"foo", 123}
is not an ElixirCoin because the MD5 hash offoo123
isef238ea00a26528de40ff231e5a97f50
{"Serun+u", 1}
is a valid ElixirCoin because the MD5 hash ofSerun+u1
is00000011f4de73238f12fb2c57d5dc56