#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: Agustín Glorioso int DNI=42923252; void set_union(set &A,set &B,set &C){ C = A; C.insert(B.begin(),B.end()); } bool es_primo(int x){ if (x <= 1) return false; for(int i=2;i> &VS, set &S){ int N = VS.size(); for(int i=0;i temp = VS[i]; for( set::iterator it=temp.begin(); it!=temp.end(); ++it ) { if (es_primo(*it)){ set_union(S,temp,S); } } } } //---:---<*>---:---<*>- FINALIZA CODIGO FUNCION --:---<*>---:---<*>---:---<*> int main() { Eval ev; int vrbs=0; ev.eval<1>(set_prime,vrbs); return 0; }