CodePudding user response:
# include & lt; Stdio. H># include & lt; Stdlib. H>
Int PrimeNumber (int x)
{
Int I, k;
For (I=2; i
If (x % I==0) break;
}
If (I==x) k=1;
The else k=0;
The return of k;
}
Int main ()
{int a, d, n, array, I, judge, j, pn;
While (the scanf (" % d % d % d ", & amp; A, & amp; D, & amp; N)! EOF)={
j=0;
for(i=0; J
Array=a + I * d;
Judge=PrimeNumber (array);
If (judge==1)
{
j++;
Pn=array;
}
}
Printf (" % d ", array); }
return 0;
}
CodePudding user response:
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.htmlI hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html