Added older advents

This commit is contained in:
Jos van Goor 2022-12-01 13:46:47 +01:00
parent 8db2505049
commit 9cf858b860
78 changed files with 13807 additions and 0 deletions

View file

@ -0,0 +1,24 @@
#include <iostream>
#include <string>
#include "md5.hpp"
using namespace std;
int main()
{
string prefix = "bgvyzdsv";
for (size_t idx = 0; ; ++idx)
{
string test = prefix + to_string(idx);
string hash = md5(test);
if (hash.find_first_not_of('0') == 6) //5 for solution 1
{
cout << test << "\n";
return 0;
}
}
}