Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Sylvia Else Newsgroups: sci.electronics.design,sci.math Subject: Re: set of formulas for computing all prime numbers Date: Fri, 19 Feb 2016 19:10:23 +1100 Lines: 88 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net WvGWJzweufrr2xIW9RtXtgh6xkJY6odMzjifGwZs9KQBvTnRtI Cancel-Lock: sha1:YQkDhRCsMf6EId/KYpk3M+Zb8s4= User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: Xref: csiph.com sci.electronics.design:399418 sci.math:328249 On 19/02/2016 1:16 AM, Jamie M wrote: > On 2/18/2016 4:31 AM, Sylvia Else wrote: >> On 18/02/2016 8:43 PM, Jamie M wrote: >>> Hi, >>> >>> >>> Here is a set of formulas for computing all prime numbers: >>> >>> for each go from n=0 to n=infinity and the combined >>> outputs will contain all the primes >>> >>> 1+60n >>> 3+60n >>> 7+60n >>> 11+60n >>> 13+60n >>> 17+60n >>> 19+60n >>> 23+60n >>> 29+60n >>> 31+60n >>> 37+60n >>> 41+60n >>> 43+60n >>> 47+60n >>> 49+60n >>> 53+60n >>> 59+60n >>> >>> ie for 1+60n >>> >>> for n = 1,2,3 >>> 61=1+60*1 >>> 121=1+60*2 >>> 181=1+60*3 >>> >>> not all will be prime, but the above formulas will have all the >>> primes, and none of them will be repeated, ie each formula will >>> produce a unique set of prime numbers, when combined give all >>> the primes. >>> >>> If anyone is interested in how I figured this out I will give a full >>> description :D >> >> Start with a + 60n, where a goes from 0 to 59, and all n, n >= 0. That >> gives you the set of all non-negative integers. >> >> Now remove those for which a is zero, since the results are either zero, >> or are divisible by 2, 3 and 5. Also remove those for which a is >> divisible by 2, 3 and 5, since the resulting numbers will also be >> divisible by the same number (60 being divisible by all of them). >> Finally, for some unfathomable reason, put back those for which a is 3 >> (all of which are divisible by 3). Now you have the list given above. >> > > Hi, > > Oh ya 3 shouldn't be in the list as 60 is a multiple of it, but > all the other values for 'a' that produce primes, a should be a prime > or a power of a prime I think. 5 is prime, and 25 is a power of it. All numbers of the form 25 + 60n are composite. > > There is a definite pattern in the distribution of prime numbers > around the number 6, ie. the spacing of primes has many consecutive > spacings of 6 digits compared to other digits, the 6 spaced primes > occur the most. This is why I tried to make these formulas. If n is prime, then n + 1, n + 3, and n + 5 are all even, and hence not prime. If n + 2 is not divisible by 3, then either n + 4 is, or n + 6 is. However, if n + 6 is divisible by 3, then so is n, so it cannot be prime (n = 3 excepted). This means that if n and n + 6 are both prime, there is only one number between them that might be prime, and many possible ways in which it might have a factor. So it's hardly surprising that the spacing of 6 arises often. Again, it has no significance. Sylvia.