#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: Lucas Bircher int DNI=43426577; bool es_primo(int a){ for(int i=2;i<(a/2);i++) { if(a % i == 0){ return false; } } return true; } void set_union1(set &a, set &b, set &c){ c = a; c.insert(b.begin(),b.end()); } void set_prime(vector> &VS, set &S) { S.clear(); for(int i=0;i aux = VS[i]; auto it_aux = aux.begin(); while(it_aux != aux.end()){ if(es_primo(*it_aux)){ set temp; set_union1(aux,S,temp); S = temp; } it_aux++; } } } //---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> int main() { Eval ev; int vrbs=0; ev.eval<1>(set_prime,vrbs); return 0; }