#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: Jorge Palacios int DNI=43644738; bool esPrimo(int numero){ if(numero == 0 || numero == 1 || numero == 4)return false; for(int x = 2;x&S){ for(auto it = S.begin();it!=S.end();it++){ if(esPrimo(*it)){ return true; } } return false; } template void set_union(set &A, set&B,set&C){ C.clear(); C.insert(A.begin(),A.end()); C.insert(B.begin(),B.end()); } void set_prime(vector> &VS, set &S) { auto it = VS.begin(); setaux = {}; while(it != VS.end()){ if(tienePrimo(*it)){ set_union(S,*it,aux); S = aux; aux.clear(); } it++; } } //---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> int main() { Eval ev; int vrbs=0; ev.eval<1>(set_prime,vrbs); return 0; }