Can anyone help me with this? The function "mpz_mod" is wrong but i don't know how to fix it.
#include <iostream>
#include <gmp.h>
#include <gmpxx.h>
using namespace std;
int main ()
{
mpz_class p;
mpz_class y;
mpz_class m;
for ( p=100 ; p<=500 ; p=p++)
{
for ( y=50 ; y<=60 ; y=y++)
{
mpz_mod (m,p,y);
}
if (m==0)
cout << p << "," << y << " ok " <<endl;
}
}