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


Groups > sci.math > #328599

Re: set of formulas for computing all prime numbers

From Jamie M <jmorken@shaw.ca>
Newsgroups sci.electronics.design, sci.math
Subject Re: set of formulas for computing all prime numbers
Date 2016-02-23 03:19 -0800
Organization Aioe.org NNTP Server
Message-ID <nahf89$aiq$1@gioia.aioe.org> (permalink)
References (2 earlier) <na4k04$1ljq$1@gioia.aioe.org> <eulicbdtcosjshfa8nb22ogcckg8vt6gfk@4ax.com> <nabn8l$7r5$2@gioia.aioe.org> <naemls$9o7$1@dont-email.me> <nahees$93f$1@gioia.aioe.org>

Cross-posted to 2 groups.

Show all headers | View raw


On 2/23/2016 3:05 AM, Jamie M wrote:

> Hi,
>
> Thanks, I still am trying to figure out the pattern for highest prime
> density in a set of formulas for An + x
>
> It turns out it is different that what I was guessing, ie the most
> prime dense formulas don't come from primorial numbers, but more
> generally from numbers with the most unique divisors I think.
>
> This is based on finding the highest prime dense formula in the
> first 7000, and it has a value of 6930, and that has many unique
> divisors:
>
> 1, 2, 3, 5, 6, 7, 9, 10, 11, 14, 15, 18, 21, 22, 30, 33, 35, 42, 45,
> 55, 63, 66, 70, 77, 90, 99, 105, 110, 126, 154, 165, 198, 210, 231,
> 315, 330, 385, 462, 495, 630, 693, 770, 990, 1155, 1386, 2310, 3465,
> 6930
>
> I don't know if it has the most unique divisors in the first 7000
> numbers but wouldn't be surprised.
>
> I need to check higher still to see the ordering of prime density
> functions to find the exact pattern as I was already wrong a couple
> times. :D
>
> So for 6930, there are 1445 prime producing equations for it, out
> of the possible 6930 equations.  The first 49 equations that
> produce primes for 6930 have coefficient values:
>
> 1,2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,
>
> 103,107,109,113,127,131,137,139,149,151,157,163,167,169,173,179,181,191,193,
>
> 197,199,211
>
> ie
> 1 + 6930n
> 2 + 6930n
> 3 + 6930n
> ...
> 139 + 6930n
> ...
>
> These values very closely match the prime numbers, will all matches in
> that list with the exception of 169, which is the square of 13, and
> missing from the divisors of 6930, also the prime 17 is missing from
> the divisors, and I checked the square of 17, 289 is also in the list of
> values that produce primes for 6930.
>
> So basically the best number for these formulas will have as many unique
> divisors as possible I guess that is the simple pattern.
>
> So the performance of these equations is:
>
> for:
>
> 17 + 6930n
>
> this produces 72 primes out of the first 144 values for n.
>
> That is the best I found yet, it is 50% primes.
>
> The total number of primes found by all the 1445 prime producing
> equations is 78498 in the first 1million digits, which is all the
> primes.  And the average number of primes found per prime
> producing equation is 78498/1445=54.323
>
> So for all 1445 equations, they average a production of 54.323 primes
> out of the first 144 values for n.  That is an average prime
> production rate of 37.7%.
>
> So I think basically just having as many unique divisors is the key,
> and then the list of equation coefficients will more closely match
> the prime numbers, and there will be high prime density.
>
> If I use a bigger number with tons of divisors, I should be able to
> get the percentage of primes found up quite a bit still, since
> the list of coefficients won't grow much.
>
> cheers,
> Jamie
>
>
>



I should add here are the top performing and worst performing
values for 0 to 7000, ie a + 7000n sorted by the ratio of prime
producing formulas they have to the value ie for 6930, it has
1445 prime producing formulas / 6930 = 0.208, the most prime
dense formula of all 7000 (since 6930 seems to have the most
unique divisors)

equation value , highest density sorted by ratio	
6930	0.208513709
4620	0.208874459
2310	0.20995671
5460	0.211904762
2730	0.212820513
3570	0.216526611
3990	0.217794486
4830	0.219668737
6090	0.221510673
6510	0.221966206
4290	0.224941725
5610	0.229055258
6720	0.229166667
6300	0.229206349
5880	0.229251701

There are 999 different equations out of the first 7000
that have a ratio of 1, ie they have the lowest prime density,
just the same as the actual number line.  Here are some of them,
they seem quite evenly spaced over the 7000 equations, I just
put the first and last of them here:

equation value , lowest density sorted by ratio
1	1
2	1
3	1
5	1
7	1
11	1
13	1
17	1
19	1
23	1
29	1
31	1
37	1
41	1
43	1
...
6899	1
6907	1
6911	1
6917	1
6947	1
6949	1
6959	1
6961	1
6967	1
6971	1
6977	1
6983	1
6991	1
6997	1


Here are some more equations out of the list of 7000
that have prime density ratios between those two
above extremes of prime densities:

I think the pattern is that numbers with a higher ratio,
ie approaching 1, have fewer divisors, so I guess if
that is true, these tables are essential a divisor count
index.

equation value , density sorted by ratio
6174	0.286200194
6048	0.286210317
5376	0.286272321
5292	0.286281179
4704	0.286352041
4536	0.286375661
3366	0.286393345
4116	0.286443149
...
3010	0.336212625
5720	0.336363636
648	0.336419753
318	0.336477987
3290	0.336778116
576	0.336805556
282	0.336879433
2860	0.337062937
...
4604	0.5
4612	0.5
4652	0.5
4684	0.5
4724	0.5
4748	0.5
4772	0.5
4804	0.5
...
459	0.631808279
4617	0.632012129
4371	0.632120796
4611	0.632183908
3249	0.632194521
117	0.632478632
1539	0.632878493
5133	0.633352815
...
203	0.837438424
2107	0.838158519
217	0.838709677
6409	0.839288501
2303	0.839774208
25	0.84
1859	0.840236686
...
4859	0.96851204
5371	0.968534724
961	0.968782518
5617	0.968844579
3953	0.968884392
5699	0.96894192
4559	0.969072165
4187	0.969190351

cheers,
Jamie

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


Thread

set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 01:43 -0800
  Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 01:53 -0800
    Re: set of formulas for computing all prime numbers pedro <me@privacy.net> - 2016-02-21 14:21 +0800
  Re: set of formulas for computing all prime numbers Virgil <VIRGIL@VIRGIL.com> - 2016-02-18 02:53 -0700
    Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 01:55 -0800
  Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 02:49 -0800
  Re: set of formulas for computing all prime numbers DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-02-18 11:26 +0000
  Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-18 13:07 +0100
    Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 06:20 -0800
      Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-18 15:48 +0100
        Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 06:53 -0800
          Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-18 17:37 +0100
        Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 07:09 -0800
          Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-18 17:44 +0100
            Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 13:18 -0800
              Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-19 11:40 +0100
                Re: set of formulas for computing all prime numbers DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-02-19 11:32 +0000
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 02:15 -0800
            Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 13:39 -0800
              Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-19 11:46 +0100
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 02:35 -0800
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 02:49 -0800
                Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-22 10:57 +0100
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-22 03:18 -0800
                Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-22 10:54 +0100
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-22 03:26 -0800
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 05:12 -0800
              Re: set of formulas for computing all prime numbers Jasen Betts <jasen@xnet.co.nz> - 2016-02-20 08:34 +0000
      Re: set of formulas for computing all prime numbers pedro <me@privacy.net> - 2016-02-21 14:32 +0800
        Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 22:59 -0800
          Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-22 11:10 +0100
            Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 03:05 -0800
              Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 03:19 -0800
              Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-23 12:35 +0100
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 04:12 -0800
                Re: set of formulas for computing all prime numbers Moufang Loop <moufang.loop@hotmail.invalid> - 2016-02-23 12:43 +0000
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 05:12 -0800
                Re: set of formulas for computing all prime numbers Moufang Loop <moufang.loop@hotmail.invalid> - 2016-02-23 13:48 +0000
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 06:07 -0800
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 05:23 -0800
                Re: set of formulas for computing all prime numbers Moufang Loop <moufang.loop@hotmail.invalid> - 2016-02-23 13:51 +0000
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 06:12 -0800
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 06:17 -0800
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 06:40 -0800
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 06:42 -0800
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 08:55 -0800
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 05:06 -0800
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 05:54 -0800
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 05:59 -0800
  Re: set of formulas for computing all prime numbers Moufang Loop <moufang.loop@hotmail.invalid> - 2016-02-18 12:25 +0000
    Re: set of formulas for computing all prime numbers Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2016-02-18 14:16 +0000
      Re: set of formulas for computing all prime numbers Moufang Loop <moufang.loop@hotmail.invalid> - 2016-02-18 14:53 +0000
        Re: set of formulas for computing all prime numbers Moufang Loop <moufang.loop@hotmail.invalid> - 2016-02-22 14:15 +0000
          Re: set of formulas for computing all prime numbers Moufang Loop <moufang.loop@hotmail.invalid> - 2016-02-22 14:18 +0000
            Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 01:47 -0800
              Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-23 01:52 -0800
      Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-18 15:58 +0100
      Re: set of formulas for computing all prime numbers R Kym Horsell <kym@kymhorsell.com> - 2016-02-18 17:34 +0000
    Re: set of formulas for computing all prime numbers Jim Burns <james.g.burns@att.net> - 2016-02-18 10:46 -0500
  Re: set of formulas for computing all prime numbers Sylvia Else <sylvia@not.at.this.address> - 2016-02-18 23:31 +1100
    Re: set of formulas for computing all prime numbers bert <bert.hutchings@btinternet.com> - 2016-02-18 05:58 -0800
      Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 06:45 -0800
    Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 06:09 -0800
    Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 06:16 -0800
      Re: set of formulas for computing all prime numbers Sylvia Else <sylvia@not.at.this.address> - 2016-02-19 19:10 +1100
  Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 20:46 -0800

csiph-web