#define USECHRONO #undef HAVE_MPI #include "eval.hpp" #include #include #include #include using namespace aed; using namespace std; //---:---<*>---:---<*>- COMIENZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> // COMPLETAR DNI y NOMBRE AQUI: // Nombre: Burella Lucio int DNI=41603130; bool es_primo (int A){ int Set_1 = 1; int Set_2 = 0; while (Set_1<=A){ if (A % Set_1 == 0){ Set_2++; } Set_1++; } if (Set_2==2) { return true; } else{ return false; } } void set_prime(vector> &VS, set &S) { S.clear(); for (auto r:VS){ for (auto x:r){ if(es_primo(x)){ for (auto y:r){ S.insert(y); }; } } } } //---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> int main() { Eval ev; int vrbs=0; ev.eval<1>(set_prime,vrbs); return 0; }