You are on page 1of 1

time_t tt;

ZZ ee, dd,ll;
test = 0;
time(&tt);
NTL::SetSeed(NTL::to_ZZ((unsigned long)(tt + 15)));
while (test == 0)
{
int test2 = 0;
ee = RandomBnd(n);
time(&tt);
NTL::SetSeed(NTL::to_ZZ((unsigned long)(tt + 15)));
while (test2 == 0)
{
dd = RandomBnd(n);
if (dd < float((sqrt(sqrt(conv<long>(n)))) / 3))
{
test2 = 1;
cout << float((sqrt(sqrt(conv<long>(n)))) / 3);
}
}
if ((ee*dd) % n == 1)
{
test = 1;
cout << ee*dd << "\n";
}
cout <<ee<< "---><---"<<dd<<"\n";
}
cout << ee<<" ------------" << dd;

You might also like