Hacker News new | ask | show | jobs
by naniwaduni 2454 days ago
It is exactly like arithmetic coding. The formula given allows you to improve the precision of the constant given by encoding more primes, and it equally well lets you encode integers that are not prime. It doesn't resemble a prime sieve because it's not one; you just construct approximations with existing knowledge of what the primes are.