Beispiel #1
0
 private static string GetLowestNumber(AdventCoin coin, string s)
 {
     bool mined = false;
     while (!mined)
     {
         if (coin.Value % 100000 == 0)
         {
             Console.WriteLine($"Processed {coin.Value} values...");
         }
         if (coin.Match(s))
         {
             mined = true;
             break;
         }
         coin.Value++;
     }
     return $"Coin starting with {s} mined with value {coin.Value}. Hash: {coin.Md5Hash}";
 }