Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #495939

Re: formula to calculate the nth prime

From Jim Burns <james.g.burns@att.net>
Newsgroups sci.electronics.design, sci.math
Subject Re: formula to calculate the nth prime
Date 2018-02-19 11:40 -0500
Organization Aioe.org NNTP Server
Message-ID <a0ed166e-3d25-90c5-e329-daf1ada34b82@att.net> (permalink)
References <p663sv$1og2$1@gioia.aioe.org> <48a09b08-b085-ef81-5754-86b1c0eb6b9e@att.net> <p67fk4$9vt$1@gioia.aioe.org> <77b4ad64-ebfb-6671-7d07-94295677b7f9@att.net> <p6e1vu$4ui$1@gioia.aioe.org>

Cross-posted to 2 groups.

Show all headers | View raw


On 2/19/2018 3:30 AM, Jamie M wrote:

> Could you solve this formula for x in
>  Primorial[n]=2*3*5*7*11...*691*x ?
> ie x as a prime larger than 691.

I would substitute

Primorial[n]  =  Primorial[n-1]*x

EulerPhi[Primorial[n]] = EulerPhi[Primorial[n-1]]*(x-1)

and I think also
prime(n) = x

then, since x only occurs as "x times some known coefficient",
I'd collect all the x-multiple-terms on one side of '='
and all the constant-terms on the other.

That seems to be what you'd intended to do below, more or
less, but with some x-dependent terms left on both sides.

Why do you think this will give you primes?

> prime(n) = (Primorial[n] -
>       (2*((EulerPhi[
>             Primorial[n]]) + (EulerPhi[
>              Primorial[n]] - (1/2*(Primorial[n - 1])))
>           + (EulerPhi[Primorial[n]] - (Primorial[n - 1]))))) /
>     (Primorial[n - 1] -
>       (2*((EulerPhi[
>             Primorial[n - 1]]) + (EulerPhi[
>              Primorial[n - 1]] - (1/2*(Primorial[n - 2])))
>           + (EulerPhi[Primorial[n - 1]] - (Primorial[n - 2])))));

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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