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: Thu, 18 Feb 2016 23:31:53 +1100 Lines: 55 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net CLi96CCbx7kAcI+uMMwb6g06iThDvoGgvmfPTSl821zEQsttow Cancel-Lock: sha1:lYyjcpjXztJ3Scaa7wiLsD8IheQ= 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:399289 sci.math:328185 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. So it's mind numbingly trivial, pointless, and useless. Sylvia.