Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #399835
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Newsgroups | sci.electronics.design, sci.math |
| Subject | Re: set of formulas for computing all prime numbers |
| Date | 2016-02-22 10:54 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <naeln7$6ji$1@dont-email.me> (permalink) |
| References | (4 earlier) <na4mrr$1r96$1@gioia.aioe.org> <na4s73$217$1@dont-email.me> <na5dn3$14j5$1@gioia.aioe.org> <na6rkd$e3i$1@dont-email.me> <na9fi7$123o$1@gioia.aioe.org> |
Cross-posted to 2 groups.
On 20/02/16 11:35, Jamie M wrote: > On 2/19/2016 2:46 AM, David Brown wrote: >> On 18/02/16 22:39, Jamie M wrote: >>> On 2/18/2016 8:44 AM, David Brown wrote: >>>> On 18/02/16 16:09, Jamie M wrote: >>>>> On 2/18/2016 6:48 AM, David Brown wrote: >>>>>> On 18/02/16 15:20, Jamie M wrote: >>>>>>> On 2/18/2016 4:07 AM, David Brown wrote: >>>>>>>> On 18/02/16 10:43, Jamie M wrote: >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> >>>>>>>>> Here is a set of formulas for computing all prime numbers: >>>>>>>> >>>>>>>> How about just the sequence "n" from 1 to infinity? It will also >>>>>>>> contain all the prime numbers, and be equally useless, with >>>>>>>> exactly the >>>>>>>> same characteristics as your list. >>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> Yes it has all the primes but the density of primes is lower, >>>>>>> ie out of 60 formulas, 43 don't have any primes, yet all 60 >>>>>>> formulas have an equal number of digits, so the density of >>>>>>> primes is something like 3.5x higher as only 17 formulas out >>>>>>> of 60, 28% of the overall digits contain all the primes. >>>>>>> >>>>>> >>>>>> Your formula has a "prime density" that tends towards 0 very >>>>>> rapidly as >>>>>> n gets bigger - i.e., once you have gone beyond the first few >>>>>> thousand >>>>>> numbers, almost all numbers generated by the formula are non-primes. >>>>>> Exactly the same thing applies to my formula. They are equally >>>>>> useless. >>>>>> >>>>>> There are a few simple formulas that happen to produce a surprisingly >>>>>> high density of primes for a while. P(n) = n² + n + 41 is one such >>>>>> formula - it produces primes for n from 0 up to 39. But as n gets >>>>>> bigger, the density tends to 0 - this is the same for any such >>>>>> formula. >>>>>> Thus such formula have no practical applications, and are merely >>>>>> interesting mathematical curiosities. >>>>>> >>>>>> Your formula - like mine - is not one of these unusual high density >>>>>> formula. It is therefore not interesting or special in any way. >>>>>> >>>>> >>>>> >>>>> Hi, >>>>> >>>>> Also the prime number density can be increased beyond 3.5x (for 60n) >>>>> ie. for 60^3*n, that is 216000, and the values for: >>>>> >>>>> a+60^3n for a are just the prime numbers or powers of prime numbers >>>>> below 216000 that are also not divisors of 216000 (I believe). >>>>> >>>>> So the number of formulas decreases in this case, but the overall >>>>> number of formulas used to generate all possible positive integers >>>>> is still 216000, so the prime generating formulas are a small >>>>> subset of the overall and have increasing density u increases in 60^u >>>>> >>>>> cheers, >>>>> Jamie >>>>> >>>> >>>> You can make up any formula you like - they just produce a list of >>>> numbers, some of which are prime and some of which are non-prime, and >>>> the prime density quickly heads to 0 as you go down the list. >>>> >>>> If you can find a sequence whose asymptotic behaviour beats 1/log(N) >>>> for >>>> prime density, then you will have found something useful. If you can >>>> find a sequence whose prime density at low values is unusually high >>>> (such as n² + n + 41), then you will have found something interesting. >>>> >>>> Until then, you are just playing around. (There is nothing wrong with >>>> playing around with numbers, formula and mathematics - it can be fun >>>> and >>>> educational. It's only when you posts these things as though they were >>>> great revelations and mathematical breakthroughs that you look silly.) >>>> >>>> >>> >>> Hi, >>> >>> You are still missing the point, the formulas contain all the primes: >>> >>> ie >>> >>> each indexed prime n other than 3 or 2 are found by 5+n*6 or 7 +n*6 >>> to infinity >>> >>> showing the importance of the 6 multiple. >>> >> >> No, /you/ are missing the point. You can make any sort of list in that >> style that includes all primes: >> >> n >> 2n + 1 >> 3n + 1 and 3n + 2 >> 6n + 1 and 6n + 5 >> 15n + 1, 15n + 2, 15n + 4, 15n + 7, 15n + 8, 15n + 11, 15n + 13, >> and 15n + 14 >> >> You might like to see if you can figure out the pattern here for these >> formula. > > Hi, > > You forgot a couple above for primes 3 and 5, ie 15n+3 and 15n+5, but > other that that looks good, but I'm not sure how you generated x > in the 15n + x list? It might have helped if I had said these were for n >= 1, and omitting the smaller primes. Adding "15n + 3" and "15n + 5" (or adding "6n + 2" and "6n + 3") for n = 0 is required to get all the primes, but these greatly reduce the density of the list for n >= 1. With that caveat, the list of "x" for a given "A" in "An + x" is the numbers that are co-prime with "A". > > I wrote a PC program that can generate the pattern for a given n > and verified your x's are correct, and also I think I see the > interesting pattern, it is mirrored from both sides, ie. > > 1,2,4,7 (gap 1,2,3) > 14,13,11,8 (gap 1,2,3) > > Is that the pattern you are talking about? :D > It is a consequence of the pattern, but not the pattern itself. > cheers, > Jamie > > > >> >> 6 just happens to be a nice choice because it is a particular common >> spacing, and thus the resulting list has a higher prime density than >> other lists of this type. But there is no fundamental difference in the >> way these work. >> >> >> >> >
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 01:43 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 01:53 -0800
Re: set of formulas for computing all prime numbers pedro <me@privacy.net> - 2016-02-21 14:21 +0800
Re: set of formulas for computing all prime numbers Virgil <VIRGIL@VIRGIL.com> - 2016-02-18 02:53 -0700
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 01:55 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 02:49 -0800
Re: set of formulas for computing all prime numbers DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-02-18 11:26 +0000
Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-18 13:07 +0100
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 06:20 -0800
Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-18 15:48 +0100
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 06:53 -0800
Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-18 17:37 +0100
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 07:09 -0800
Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-18 17:44 +0100
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 13:18 -0800
Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-19 11:40 +0100
Re: set of formulas for computing all prime numbers DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-02-19 11:32 +0000
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 02:15 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 13:39 -0800
Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-19 11:46 +0100
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 02:35 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 02:49 -0800
Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-22 10:57 +0100
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-22 03:18 -0800
Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-22 10:54 +0100
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-22 03:26 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 05:12 -0800
Re: set of formulas for computing all prime numbers Jasen Betts <jasen@xnet.co.nz> - 2016-02-20 08:34 +0000
Re: set of formulas for computing all prime numbers pedro <me@privacy.net> - 2016-02-21 14:32 +0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 22:59 -0800
Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-22 11:10 +0100
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 03:05 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 03:19 -0800
Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-23 12:35 +0100
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 04:12 -0800
Re: set of formulas for computing all prime numbers Moufang Loop <moufang.loop@hotmail.invalid> - 2016-02-23 12:43 +0000
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 05:12 -0800
Re: set of formulas for computing all prime numbers Moufang Loop <moufang.loop@hotmail.invalid> - 2016-02-23 13:48 +0000
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 06:07 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 05:23 -0800
Re: set of formulas for computing all prime numbers Moufang Loop <moufang.loop@hotmail.invalid> - 2016-02-23 13:51 +0000
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 06:12 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 06:17 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 06:40 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 06:42 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 08:55 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 05:06 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 05:54 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 05:59 -0800
Re: set of formulas for computing all prime numbers jack4747@gmail.com - 2016-02-18 04:22 -0800
Re: set of formulas for computing all prime numbers Moufang Loop <moufang.loop@hotmail.invalid> - 2016-02-18 12:25 +0000
Re: set of formulas for computing all prime numbers Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2016-02-18 14:16 +0000
Re: set of formulas for computing all prime numbers Moufang Loop <moufang.loop@hotmail.invalid> - 2016-02-18 14:53 +0000
Re: set of formulas for computing all prime numbers Moufang Loop <moufang.loop@hotmail.invalid> - 2016-02-22 14:15 +0000
Re: set of formulas for computing all prime numbers Moufang Loop <moufang.loop@hotmail.invalid> - 2016-02-22 14:18 +0000
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 01:47 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 01:52 -0800
Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-18 15:58 +0100
Re: set of formulas for computing all prime numbers R Kym Horsell <kym@kymhorsell.com> - 2016-02-18 17:34 +0000
Re: set of formulas for computing all prime numbers Jim Burns <james.g.burns@att.net> - 2016-02-18 10:46 -0500
Re: set of formulas for computing all prime numbers Sylvia Else <sylvia@not.at.this.address> - 2016-02-18 23:31 +1100
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 06:09 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 06:16 -0800
Re: set of formulas for computing all prime numbers Sylvia Else <sylvia@not.at.this.address> - 2016-02-19 19:10 +1100
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 06:45 -0800
Re: set of formulas for computing all prime numbers bloggs.fredbloggs.fred@gmail.com - 2016-02-20 06:53 -0800
Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 20:44 -0800
csiph-web