Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #495911
| From | Jamie M <jmorken@shaw.ca> |
|---|---|
| Newsgroups | sci.electronics.design, sci.math |
| Subject | Re: formula to calculate the nth prime |
| Date | 2018-02-18 20:37 -0800 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <p6dka6$1is9$1@gioia.aioe.org> (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> |
Cross-posted to 2 groups.
On 2/17/2018 8:06 AM, Jim Burns wrote:
>
> Just checking some of *ALL* is not one of those techniques.
> I think you can see why.
>
Hi,
I added in one more thing to the formula, here is the
Mathematica code, check the output seems pretty good now.
cheers,
Jamie
Primorial[n_] := Times @@ Prime[Range[n]]
For[abz = 123, abz < 200, abz++,
n = abz;
abc =
Primorial[n] -
(2*((EulerPhi[Primorial[n]])
+ (EulerPhi[Primorial[n]] - (1/2*(Primorial[n - 1])))
+ (EulerPhi[Primorial[n]] - (Primorial[n - 1]))));
Print[abc/(abclast + 0.001)];
abclast = abc;
output:
1.348976534243001*10^-226
683.989
691.969
701.949
709.965
719.946
727.961
733.976
739.974
743.988
751.9526719532148
757.9668362865026
761.9805313827452
769.9465423396056
773.9759220645500
787.8960560349760
797.9261019362736
809.9097261477187
811.9825971824887
821.9213978739995
823.9780857485846
827.9612985662750
829.9734962971450
839.9139243059970
853.8843437256334
857.9533294400837
859.9650621337598
863.9491145184712
877.8786706147960
881.9454472262985
883.9568255746800
887.9413949127097
907.833398821066
911.938084265247
919.910417376421
929.896164220180
937.907559075739
941.931060152427
947.916810967374
953.915153591772
967.864550385730
971.924295456198
977.910548967700
983.908953949633
991.895549381174
997.905888215067
1009.869427857681
1013.914527503639
1019.901437135354
1021.922632944726
1031.875621586853
1033.919333053904
1039.895295864701
1049.871631980883
1051.914480626966
1061.869021523264
1063.911312845743
1069.888066778317
1087.822211432057
1091.896223536677
1093.905231913702
1097.893186005687
1103.881270893985
1109.879910759946
1117.868257590860
1123.877285719450
1129.875956749974
1151.793862928496
1153.893621256666
1163.852674711661
1171.861479189142
1181.850638283252
1187.868909918657
1193.867664277097
1201.856920631363
1213.836945399172
1217.873538177709
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