Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #403330
| Newsgroups | sci.electronics.design |
|---|---|
| Date | 2016-03-18 05:46 -0700 |
| References | <ncgcgl$1rf$1@gioia.aioe.org> <dl1rdrF4v6uU1@mid.individual.net> |
| Message-ID | <bf7f91ce-e809-40f5-9c52-5205f8f34ca9@googlegroups.com> (permalink) |
| Subject | Re: encoder and decoder for compact representation of the prime numbers |
| From | acd <acd4usenet@lycos.de> |
Am Freitag, 18. März 2016 09:09:37 UTC+1 schrieb Sylvia Else: > On 18/03/2016 6:58 PM, Jamie Morken wrote: > 7,19,23,29,31,37,41,43,47,53,59 > > > > looks good so far just like the primes so the decoder works fine at > > least on paper. Using a very large primorial is a good idea too > > as the prime density per bit (or bits required per prime) is more > > compact. > > As the density of primes drops asymptotically towards zero for large > primes, it doesn't matter how large a number of you choose, the packing > efficiency will also drop towards zero. > I do not think so, you could just give n for the nth prime. This is the most compact representation. Decoding will be difficult, of course. If you cannot access a full table you could store only the primes for powers of two, or similar, then you have a starting point for the search. Andreas
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
encoder and decoder for compact representation of the prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-18 00:58 -0700
Re: encoder and decoder for compact representation of the prime numbers Sylvia Else <sylvia@not.at.this.address> - 2016-03-18 19:09 +1100
Re: encoder and decoder for compact representation of the prime numbers acd <acd4usenet@lycos.de> - 2016-03-18 05:46 -0700
Re: encoder and decoder for compact representation of the prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-18 14:21 -0700
Re: encoder and decoder for compact representation of the prime numbers Sylvia Else <sylvia@not.at.this.address> - 2016-03-19 12:21 +1100
Re: encoder and decoder for compact representation of the prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-19 08:57 -0700
Re: encoder and decoder for compact representation of the prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-19 12:37 -0700
csiph-web