#include #include int main(){const int N = 31937559; void ln(k){ char q[k]; int x = 1+(int)sqrt(N); {int j=k; while(j--) q[j]=0;} // Initialize array to zero. {int j=k; while(j--) q[j*j%k] = 1;} // set q[j] for those j that are residues. printf("The quadratic residues modulo %d are: ", k); {int j; for(j=0; j