#include #include #include using namespace std; int recur(int r, int p, int j, int passau, int passados, int c, int exp){ if (c==15){ return 0; } else { passados = p-passau; j = (r*passados)%p; cout<>n; cout<<"Introduce the denominator: "<>d; cout< pr; pr.push_back(2); while (b<30){ for (a=2; a*a<=b; a++){ if (b%a==0){ z=1; break; } } if (z==0){ pr.push_back(b); } z=0; b = b+2; } for (int i=0; i<8; i++){ for (int j=0; j