Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #495580
| From | Jamie M <jmorken@shaw.ca> |
|---|---|
| Newsgroups | sci.electronics.design, sci.math |
| Subject | Re: formula to calculate the nth prime |
| Date | 2018-02-16 13:20 -0800 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <p67hvc$e8r$1@gioia.aioe.org> (permalink) |
| References | <p663sv$1og2$1@gioia.aioe.org> <ocSdnSFPx_fBoBrHnZ2dnUU7-bPNnZ2d@giganews.com> |
Cross-posted to 2 groups.
On 2/16/2018 12:21 PM, Kevin Aylward wrote: >> "Jamie M" wrote in message news:p663sv$1og2$1@gioia.aioe.org... > >> Hi, > >> Here is a formula to calculate the n-th prime, given >> the primes less than the n-th prime: > >> primorial(n) - >> (2*((EulerPhi(primorial(n)))+(EulerPhi(primorial(n))-(1/2*(primorial(n-1))))+(EulerPhi(primorial(n))-(primorial(n-1))))) >> = 2*primorial(n-2). > > All odd numbers are prime: > > 1 - yes > 3 - yes > 5 - yes > 7- yes > 9 - no > 11 - yes > 13 - yes > > > Thus proven. 9 was just an experimental error... Hi, Try this might improve your results: row_3 = 1,0,1,2,3,0; For any number x that has prime(3)=5 as a factor, values on row_3 give the minimum distance to the next prime > x. ie. numbers with 5 as a factor: 5,10,15,20,25,30,35,40,45,50,55,60,.. using row3: 1,0,1,2,3,0; all numbers >5 up to 5+1 aren't prime all numbers >10 up to 10+0 aren't prime all numbers >15 up to 15+1 aren't prime all numbers >20 up to 20+2 aren't prime all numbers >25 up to 25+3 aren't prime all numbers >30 up to 30+0 aren't prime This pattern can be repeated indefinitely using the same repeating values on row3 ie: all numbers >35 up to 35+1 aren't prime all numbers >40 up to 40+0 aren't prime all numbers >45 up to 45+1 aren't prime all numbers >50 up to 50+2 aren't prime all numbers >55 up to 55+3 aren't prime all numbers >60 up to 60+0 aren't prime. cheers, Jamie > > > -- Kevin Aylward > http://www.anasoft.co.uk - SuperSpice > http://www.kevinaylward.co.uk/ee/index.html
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
formula to calculate the nth prime Jamie M <jmorken@shaw.ca> - 2018-02-16 00:14 -0800
Re: formula to calculate the nth prime Jim Burns <james.g.burns@att.net> - 2018-02-16 13:31 -0500
Re: formula to calculate the nth prime Jamie M <jmorken@shaw.ca> - 2018-02-16 11:59 -0800
Re: formula to calculate the nth prime Jamie M <jmorken@shaw.ca> - 2018-02-16 12:40 -0800
Re: formula to calculate the nth prime Jim Burns <james.g.burns@att.net> - 2018-02-17 11:06 -0500
Re: formula to calculate the nth prime Jamie M <jmorken@shaw.ca> - 2018-02-18 18:43 -0800
Re: formula to calculate the nth prime Jamie M <jmorken@shaw.ca> - 2018-02-18 20:37 -0800
Re: formula to calculate the nth prime Jamie M <jmorken@shaw.ca> - 2018-02-18 23:06 -0800
Re: formula to calculate the nth prime Jamie M <jmorken@shaw.ca> - 2018-02-19 00:30 -0800
Re: formula to calculate the nth prime Jim Burns <james.g.burns@att.net> - 2018-02-19 11:40 -0500
Re: formula to calculate the nth prime Jamie M <jmorken@shaw.ca> - 2018-02-16 13:06 -0800
Re: formula to calculate the nth prime M Philbrook <jamie_ka1lpa@charter.net> - 2018-02-17 08:57 -0500
Re: formula to calculate the nth prime Long Hair <DecadentLinuxUserNumeroUno@decadentlinuxuser.org> - 2018-02-17 14:04 +0000
Re: formula to calculate the nth prime "Kevin Aylward" <kevinRemovAT@kevinaylward.co.uk> - 2018-02-16 20:21 +0000
Re: formula to calculate the nth prime Jamie M <jmorken@shaw.ca> - 2018-02-16 13:20 -0800
Re: formula to calculate the nth prime bill.sloman@ieee.org - 2018-02-17 16:25 -0800
csiph-web