Path: csiph.com!aioe.org!.POSTED!not-for-mail From: Jamie M Newsgroups: sci.electronics.design,sci.math Subject: Re: set of formulas for computing all prime numbers Date: Tue, 23 Feb 2016 05:12:08 -0800 Organization: Aioe.org NNTP Server Lines: 70 Message-ID: References: NNTP-Posting-Host: T/8uHmTJRz3mH8qfSgQx3Q.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com sci.electronics.design:400035 sci.math:328614 On 2/23/2016 4:43 AM, Moufang Loop wrote: > Jamie M wrote: >> On 2/23/2016 3:35 AM, David Brown wrote: >>> On 23/02/16 12:05, Jamie M wrote: >>>> >>>> If I use a bigger number with tons of divisors, I should be able to >>>> get the percentage of primes found up quite a bit still, since >>>> the list of coefficients won't grow much. >>>> >>> >>> That's all true - but remember that no matter what A and x you pick, the >>> percentage of primes drops away rapidly as n increases. That means you >>> are not finding anything useful here. It can be interesting to find >>> patterns like this - and now you have found out a lot about the patterns >>> for the simple formula An + x. Measuring samples for ever-higher values >>> of A and x will not teach you anything new. >>> >>> >> >> Of course it isn't useful its math, however I do plan on getting to >> 100% prime output up to a certain range, ie maybe beat n^2+n+41, >> which gives primes for the first 40 consecutive integers. >> >> With that last formula I posted 17 + 6930n, it gives primes for >> like the first 12 or something, so I have a ways to go still, > > "for any k there exists a pair of a and b with the property that L(n) = > an+b is prime for any n from 0 to k − 1." from > https://en.wikipedia.org/wiki/Formula_for_primes. Hi, Wow thanks for that link, that's what I've been working on too :) I wonder how many unique divisors that value of a has from the wiki page: 5283234035979900 If what I was saying is true it should have way more than average unique divisors compared to other similar sized numbers. Also for the b value, 43142746595714191 I guess that is prime :) > >> but should be doable I'd say. A will be a lot larger though. >> >> Here is a list of prime generating polynomials: >> http://mathworld.wolfram.com/Prime-GeneratingPolynomial.html >> >> Also mentions: >> >> "Jones, Sato, Wada, and Wiens have also found a polynomial of degree 25 >> in 26 variables whose positive values are exactly the prime numbers >> (Flannery and Flannery 2000, p. 51)." > > This is the result I referred to elsdewhere. Ya I remember you posting it, thanks. cheers, Jamie > >> >> cheers, >> Jamie >> >