“31”, “33”, “35”, “37”, “39”, “41”, “43”, “45”, “47”, “49”,
“51”, “53”, “55”, “57”, “59”, “61”, “63”, “65”, “67”, “69”,
“71”, “73”, “75”, “77”, “79”, “81”, “83”, “85”, “87”, “89”,
“91”, “93”, “95”, “97”, “99”,
“2199023255551”, “252097800623”, “252097800621”,
“1125899906842597”, “2251799813685119”, “9007199254740991”,
“147573952589676412927”, “590295810358705651711”,
“2361183241434822606847”,
“9444732965739290427391”
};
Double soma = 0.0;
Auto start_total = high_resolution_clock::now();
For (auto &s : numeros) {
Auto start = high_resolution_clock::now();
Auto res = mfp_test_heuristic_parallel(s);
Auto end = high_resolution_clock::now();
Double t = duration<double>(end – start).count();
Soma += t;
Cout << “Número: “ << s << “\n”;
If (res.first)
Cout << “MFP: Primo | Tempo: “ << t << “ s\n”;
Else if (res.second > 1)
Cout << “MFP: Composto (divisor = “ << res.second << “) | Tempo: “ << t << “ s\n”;
Else
Cout << “MFP: Indefinido (divisor inválido) | Tempo: “ << t << “ s\n”;