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


Groups > sci.math > #328168 > unrolled thread

set of formulas for computing all prime numbers

Started byJamie M <jmorken@shaw.ca>
First post2016-02-18 01:43 -0800
Last post2016-02-20 20:46 -0800
Articles 20 on this page of 66 — 12 participants

Back to article view | Back to sci.math


Contents

  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

Page 2 of 4 — ← Prev page 1 [2] 3 4  Next page →


#328321

FromJamie M <jmorken@shaw.ca>
Date2016-02-20 02:35 -0800
Message-ID<na9fi7$123o$1@gioia.aioe.org>
In reply to#328265
On 2/19/2016 2:46 AM, David Brown wrote:
> On 18/02/16 22:39, Jamie M wrote:
>> On 2/18/2016 8:44 AM, David Brown wrote:
>>> On 18/02/16 16:09, Jamie M wrote:
>>>> On 2/18/2016 6:48 AM, David Brown wrote:
>>>>> On 18/02/16 15:20, Jamie M wrote:
>>>>>> On 2/18/2016 4:07 AM, David Brown wrote:
>>>>>>> On 18/02/16 10:43, Jamie M wrote:
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>>
>>>>>>>> Here is a set of formulas for computing all prime numbers:
>>>>>>>
>>>>>>> How about just the sequence "n" from 1 to infinity?  It will also
>>>>>>> contain all the prime numbers, and be equally useless, with
>>>>>>> exactly the
>>>>>>> same characteristics as your list.
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Yes it has all the primes but the density of primes is lower,
>>>>>> ie out of 60 formulas, 43 don't have any primes, yet all 60
>>>>>> formulas have an equal number of digits, so the density of
>>>>>> primes is something like 3.5x higher as only 17 formulas out
>>>>>> of 60, 28% of the overall digits contain all the primes.
>>>>>>
>>>>>
>>>>> Your formula has a "prime density" that tends towards 0 very rapidly as
>>>>> n gets bigger - i.e., once you have gone beyond the first few thousand
>>>>> numbers, almost all numbers generated by the formula are non-primes.
>>>>> Exactly the same thing applies to my formula.  They are equally
>>>>> useless.
>>>>>
>>>>> There are a few simple formulas that happen to produce a surprisingly
>>>>> high density of primes for a while.  P(n) = n² + n + 41 is one such
>>>>> formula - it produces primes for n from 0 up to 39.  But as n gets
>>>>> bigger, the density tends to 0 - this is the same for any such formula.
>>>>>     Thus such formula have no practical applications, and are merely
>>>>> interesting mathematical curiosities.
>>>>>
>>>>> Your formula - like mine - is not one of these unusual high density
>>>>> formula.  It is therefore not interesting or special in any way.
>>>>>
>>>>
>>>>
>>>> Hi,
>>>>
>>>> Also the prime number density can be increased beyond 3.5x (for 60n)
>>>> ie. for 60^3*n, that is 216000, and the values for:
>>>>
>>>> a+60^3n for a are just the prime numbers or powers of prime numbers
>>>> below 216000 that are also not divisors of 216000 (I believe).
>>>>
>>>> So the number of formulas decreases in this case, but the overall
>>>> number of formulas used to generate all possible positive integers
>>>> is still 216000, so the prime generating formulas are a small
>>>> subset of the overall and have increasing density u increases in 60^u
>>>>
>>>> cheers,
>>>> Jamie
>>>>
>>>
>>> You can make up any formula you like - they just produce a list of
>>> numbers, some of which are prime and some of which are non-prime, and
>>> the prime density quickly heads to 0 as you go down the list.
>>>
>>> If you can find a sequence whose asymptotic behaviour beats 1/log(N) for
>>> prime density, then you will have found something useful.  If you can
>>> find a sequence whose prime density at low values is unusually high
>>> (such as n² + n + 41), then you will have found something interesting.
>>>
>>> Until then, you are just playing around.  (There is nothing wrong with
>>> playing around with numbers, formula and mathematics - it can be fun and
>>> educational.  It's only when you posts these things as though they were
>>> great revelations and mathematical breakthroughs that you look silly.)
>>>
>>>
>>
>> Hi,
>>
>> You are still missing the point, the formulas contain all the primes:
>>
>> ie
>>
>> each indexed prime n other than 3 or 2 are found by 5+n*6 or 7 +n*6
>> to infinity
>>
>> showing the importance of the 6 multiple.
>>
>
> No, /you/ are missing the point.  You can make any sort of list in that
> style that includes all primes:
>
> n
> 2n + 1
> 3n + 1 and 3n + 2
> 6n + 1 and 6n + 5
> 15n + 1, 15n + 2, 15n + 4, 15n + 7, 15n + 8, 15n + 11, 15n + 13,
> 					and 15n + 14
>
> You might like to see if you can figure out the pattern here for these
> formula.

Hi,

You forgot a couple above for primes 3 and 5, ie 15n+3 and 15n+5, but
other that that looks good, but I'm not sure how you generated x
in the 15n + x list?

I wrote a PC program that can generate the pattern for a given n
and verified your x's are correct, and also I think I see the
interesting pattern, it is mirrored from both sides, ie.

1,2,4,7 (gap 1,2,3)
14,13,11,8 (gap 1,2,3)

Is that the pattern you are talking about? :D

cheers,
Jamie



>
> 6 just happens to be a nice choice because it is a particular common
> spacing, and thus the resulting list has a higher prime density than
> other lists of this type.  But there is no fundamental difference in the
> way these work.
>
>
>
>

[toc] | [prev] | [next] | [standalone]


#328323

FromJamie M <jmorken@shaw.ca>
Date2016-02-20 02:49 -0800
Message-ID<na9gcp$139n$2@gioia.aioe.org>
In reply to#328321
On 2/20/2016 2:35 AM, Jamie M wrote:

>>>
>>> Hi,
>>>
>>> You are still missing the point, the formulas contain all the primes:
>>>
>>> ie
>>>
>>> each indexed prime n other than 3 or 2 are found by 5+n*6 or 7 +n*6
>>> to infinity
>>>
>>> showing the importance of the 6 multiple.
>>>
>>
>> No, /you/ are missing the point.  You can make any sort of list in that
>> style that includes all primes:
>>
>> n
>> 2n + 1
>> 3n + 1 and 3n + 2
>> 6n + 1 and 6n + 5
>> 15n + 1, 15n + 2, 15n + 4, 15n + 7, 15n + 8, 15n + 11, 15n + 13,
>>                     and 15n + 14
>>
>> You might like to see if you can figure out the pattern here for these
>> formula.
>
> Hi,
>
> You forgot a couple above for primes 3 and 5, ie 15n+3 and 15n+5, but
> other that that looks good, but I'm not sure how you generated x
> in the 15n + x list?
>
> I wrote a PC program that can generate the pattern for a given n
> and verified your x's are correct, and also I think I see the
> interesting pattern, it is mirrored from both sides, ie.
>
> 1,2,4,7 (gap 1,2,3)
> 14,13,11,8 (gap 1,2,3)
>
> Is that the pattern you are talking about? :D
>
> cheers,
> Jamie
>
>
>

Here is another list that contains all the primes except for 5:

25n+1, 25n+2, 25n+3, 25n+4, 25n+6, 25n+7, 25n+8, 25n+8,
25n+9, 25n+11, 25n+12, 25n+13, 25n+14, 25n+16, 25n+17, 25n+18,
25n+19, 25n+21, 25n+22, 25n+23, 25n+24

Only 25n+5, 25n+10, 25n+15, 25n+20 are missing from that list.

cheers,
Jamie



>>
>> 6 just happens to be a nice choice because it is a particular common
>> spacing, and thus the resulting list has a higher prime density than
>> other lists of this type.  But there is no fundamental difference in the
>> way these work.
>>
>>
>>
>>
>

[toc] | [prev] | [next] | [standalone]


#328510

FromDavid Brown <david.brown@hesbynett.no>
Date2016-02-22 10:57 +0100
Message-ID<naels9$6ji$2@dont-email.me>
In reply to#328323
On 20/02/16 11:49, Jamie M wrote:
> On 2/20/2016 2:35 AM, Jamie M wrote:
> 
>>>>
>>>> Hi,
>>>>
>>>> You are still missing the point, the formulas contain all the primes:
>>>>
>>>> ie
>>>>
>>>> each indexed prime n other than 3 or 2 are found by 5+n*6 or 7 +n*6
>>>> to infinity
>>>>
>>>> showing the importance of the 6 multiple.
>>>>
>>>
>>> No, /you/ are missing the point.  You can make any sort of list in that
>>> style that includes all primes:
>>>
>>> n
>>> 2n + 1
>>> 3n + 1 and 3n + 2
>>> 6n + 1 and 6n + 5
>>> 15n + 1, 15n + 2, 15n + 4, 15n + 7, 15n + 8, 15n + 11, 15n + 13,
>>>                     and 15n + 14
>>>
>>> You might like to see if you can figure out the pattern here for these
>>> formula.
>>
>> Hi,
>>
>> You forgot a couple above for primes 3 and 5, ie 15n+3 and 15n+5, but
>> other that that looks good, but I'm not sure how you generated x
>> in the 15n + x list?
>>
>> I wrote a PC program that can generate the pattern for a given n
>> and verified your x's are correct, and also I think I see the
>> interesting pattern, it is mirrored from both sides, ie.
>>
>> 1,2,4,7 (gap 1,2,3)
>> 14,13,11,8 (gap 1,2,3)
>>
>> Is that the pattern you are talking about? :D
>>
>> cheers,
>> Jamie
>>
>>
>>
> 
> Here is another list that contains all the primes except for 5:
> 
> 25n+1, 25n+2, 25n+3, 25n+4, 25n+6, 25n+7, 25n+8, 25n+8,
> 25n+9, 25n+11, 25n+12, 25n+13, 25n+14, 25n+16, 25n+17, 25n+18,
> 25n+19, 25n+21, 25n+22, 25n+23, 25n+24
> 
> Only 25n+5, 25n+10, 25n+15, 25n+20 are missing from that list.
> 
> cheers,
> Jamie
> 

Correct.  Now figure out the list for 21n and 35n.


[toc] | [prev] | [next] | [standalone]


#328514

FromJamie M <jmorken@shaw.ca>
Date2016-02-22 03:18 -0800
Message-ID<naeqqh$1src$1@gioia.aioe.org>
In reply to#328510
On 2/22/2016 1:57 AM, David Brown wrote:
> On 20/02/16 11:49, Jamie M wrote:
>> On 2/20/2016 2:35 AM, Jamie M wrote:
>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> You are still missing the point, the formulas contain all the primes:
>>>>>
>>>>> ie
>>>>>
>>>>> each indexed prime n other than 3 or 2 are found by 5+n*6 or 7 +n*6
>>>>> to infinity
>>>>>
>>>>> showing the importance of the 6 multiple.
>>>>>
>>>>
>>>> No, /you/ are missing the point.  You can make any sort of list in that
>>>> style that includes all primes:
>>>>
>>>> n
>>>> 2n + 1
>>>> 3n + 1 and 3n + 2
>>>> 6n + 1 and 6n + 5
>>>> 15n + 1, 15n + 2, 15n + 4, 15n + 7, 15n + 8, 15n + 11, 15n + 13,
>>>>                      and 15n + 14
>>>>
>>>> You might like to see if you can figure out the pattern here for these
>>>> formula.
>>>
>>> Hi,
>>>
>>> You forgot a couple above for primes 3 and 5, ie 15n+3 and 15n+5, but
>>> other that that looks good, but I'm not sure how you generated x
>>> in the 15n + x list?
>>>
>>> I wrote a PC program that can generate the pattern for a given n
>>> and verified your x's are correct, and also I think I see the
>>> interesting pattern, it is mirrored from both sides, ie.
>>>
>>> 1,2,4,7 (gap 1,2,3)
>>> 14,13,11,8 (gap 1,2,3)
>>>
>>> Is that the pattern you are talking about? :D
>>>
>>> cheers,
>>> Jamie
>>>
>>>
>>>
>>
>> Here is another list that contains all the primes except for 5:
>>
>> 25n+1, 25n+2, 25n+3, 25n+4, 25n+6, 25n+7, 25n+8, 25n+8,
>> 25n+9, 25n+11, 25n+12, 25n+13, 25n+14, 25n+16, 25n+17, 25n+18,
>> 25n+19, 25n+21, 25n+22, 25n+23, 25n+24
>>
>> Only 25n+5, 25n+10, 25n+15, 25n+20 are missing from that list.
>>
>> cheers,
>> Jamie
>>
>
> Correct.  Now figure out the list for 21n and 35n.
>
>
>

Sure I already wrote a computer program so its easy :D

Here it is for 21n:

1
2
3
4
5
7
8
10
11
13
16
17
19
20

Here it is for 35n:

1
2
3
4
5
6
7
8
9
11
12
13
16
17
18
19
22
23
24
26
27
29
31
32
33
34

I moved on to a better theory, ie primorial numbers have the fewest 
values in the above lists, and the list for primorial numbers is
all primes smaller than the primorial number + all semiprimes smaller
than the primorial number that have prime factors greater than the
maximum prime factor of the primorial number.

At least I think that is correct, if not it is somewhat close to
correct anyway.  I would like to implement this into a function to
find primes from 0 upwards, using a dynamic list of these values
with the associated primorial numbers (ie. assign a new primorial number
each time a new unique prime number is found)

cheers,
Jamie

[toc] | [prev] | [next] | [standalone]


#328509

FromDavid Brown <david.brown@hesbynett.no>
Date2016-02-22 10:54 +0100
Message-ID<naeln7$6ji$1@dont-email.me>
In reply to#328321
On 20/02/16 11:35, Jamie M wrote:
> On 2/19/2016 2:46 AM, David Brown wrote:
>> On 18/02/16 22:39, Jamie M wrote:
>>> On 2/18/2016 8:44 AM, David Brown wrote:
>>>> On 18/02/16 16:09, Jamie M wrote:
>>>>> On 2/18/2016 6:48 AM, David Brown wrote:
>>>>>> On 18/02/16 15:20, Jamie M wrote:
>>>>>>> On 2/18/2016 4:07 AM, David Brown wrote:
>>>>>>>> On 18/02/16 10:43, Jamie M wrote:
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Here is a set of formulas for computing all prime numbers:
>>>>>>>>
>>>>>>>> How about just the sequence "n" from 1 to infinity?  It will also
>>>>>>>> contain all the prime numbers, and be equally useless, with
>>>>>>>> exactly the
>>>>>>>> same characteristics as your list.
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Yes it has all the primes but the density of primes is lower,
>>>>>>> ie out of 60 formulas, 43 don't have any primes, yet all 60
>>>>>>> formulas have an equal number of digits, so the density of
>>>>>>> primes is something like 3.5x higher as only 17 formulas out
>>>>>>> of 60, 28% of the overall digits contain all the primes.
>>>>>>>
>>>>>>
>>>>>> Your formula has a "prime density" that tends towards 0 very
>>>>>> rapidly as
>>>>>> n gets bigger - i.e., once you have gone beyond the first few
>>>>>> thousand
>>>>>> numbers, almost all numbers generated by the formula are non-primes.
>>>>>> Exactly the same thing applies to my formula.  They are equally
>>>>>> useless.
>>>>>>
>>>>>> There are a few simple formulas that happen to produce a surprisingly
>>>>>> high density of primes for a while.  P(n) = n² + n + 41 is one such
>>>>>> formula - it produces primes for n from 0 up to 39.  But as n gets
>>>>>> bigger, the density tends to 0 - this is the same for any such
>>>>>> formula.
>>>>>>     Thus such formula have no practical applications, and are merely
>>>>>> interesting mathematical curiosities.
>>>>>>
>>>>>> Your formula - like mine - is not one of these unusual high density
>>>>>> formula.  It is therefore not interesting or special in any way.
>>>>>>
>>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> Also the prime number density can be increased beyond 3.5x (for 60n)
>>>>> ie. for 60^3*n, that is 216000, and the values for:
>>>>>
>>>>> a+60^3n for a are just the prime numbers or powers of prime numbers
>>>>> below 216000 that are also not divisors of 216000 (I believe).
>>>>>
>>>>> So the number of formulas decreases in this case, but the overall
>>>>> number of formulas used to generate all possible positive integers
>>>>> is still 216000, so the prime generating formulas are a small
>>>>> subset of the overall and have increasing density u increases in 60^u
>>>>>
>>>>> cheers,
>>>>> Jamie
>>>>>
>>>>
>>>> You can make up any formula you like - they just produce a list of
>>>> numbers, some of which are prime and some of which are non-prime, and
>>>> the prime density quickly heads to 0 as you go down the list.
>>>>
>>>> If you can find a sequence whose asymptotic behaviour beats 1/log(N)
>>>> for
>>>> prime density, then you will have found something useful.  If you can
>>>> find a sequence whose prime density at low values is unusually high
>>>> (such as n² + n + 41), then you will have found something interesting.
>>>>
>>>> Until then, you are just playing around.  (There is nothing wrong with
>>>> playing around with numbers, formula and mathematics - it can be fun
>>>> and
>>>> educational.  It's only when you posts these things as though they were
>>>> great revelations and mathematical breakthroughs that you look silly.)
>>>>
>>>>
>>>
>>> Hi,
>>>
>>> You are still missing the point, the formulas contain all the primes:
>>>
>>> ie
>>>
>>> each indexed prime n other than 3 or 2 are found by 5+n*6 or 7 +n*6
>>> to infinity
>>>
>>> showing the importance of the 6 multiple.
>>>
>>
>> No, /you/ are missing the point.  You can make any sort of list in that
>> style that includes all primes:
>>
>> n
>> 2n + 1
>> 3n + 1 and 3n + 2
>> 6n + 1 and 6n + 5
>> 15n + 1, 15n + 2, 15n + 4, 15n + 7, 15n + 8, 15n + 11, 15n + 13,
>>                     and 15n + 14
>>
>> You might like to see if you can figure out the pattern here for these
>> formula.
> 
> Hi,
> 
> You forgot a couple above for primes 3 and 5, ie 15n+3 and 15n+5, but
> other that that looks good, but I'm not sure how you generated x
> in the 15n + x list?

It might have helped if I had said these were for n >= 1, and omitting
the smaller primes.  Adding "15n + 3" and "15n + 5" (or adding "6n + 2"
and "6n + 3") for n = 0 is required to get all the primes, but these
greatly reduce the density of the list for n >= 1.

With that caveat, the list of "x" for a given "A" in "An + x" is the
numbers that are co-prime with "A".

> 
> I wrote a PC program that can generate the pattern for a given n
> and verified your x's are correct, and also I think I see the
> interesting pattern, it is mirrored from both sides, ie.
> 
> 1,2,4,7 (gap 1,2,3)
> 14,13,11,8 (gap 1,2,3)
> 
> Is that the pattern you are talking about? :D
> 

It is a consequence of the pattern, but not the pattern itself.


> cheers,
> Jamie
> 
> 
> 
>>
>> 6 just happens to be a nice choice because it is a particular common
>> spacing, and thus the resulting list has a higher prime density than
>> other lists of this type.  But there is no fundamental difference in the
>> way these work.
>>
>>
>>
>>
> 

[toc] | [prev] | [next] | [standalone]


#328515

FromJamie M <jmorken@shaw.ca>
Date2016-02-22 03:26 -0800
Message-ID<naer90$1tml$2@gioia.aioe.org>
In reply to#328509
On 2/22/2016 1:54 AM, David Brown wrote:

>> You forgot a couple above for primes 3 and 5, ie 15n+3 and 15n+5, but
>> other that that looks good, but I'm not sure how you generated x
>> in the 15n + x list?
>
> It might have helped if I had said these were for n >= 1, and omitting
> the smaller primes.  Adding "15n + 3" and "15n + 5" (or adding "6n + 2"
> and "6n + 3") for n = 0 is required to get all the primes, but these
> greatly reduce the density of the list for n >= 1.
>
> With that caveat, the list of "x" for a given "A" in "An + x" is the
> numbers that are co-prime with "A".


Hi,

Interesting, I had thought for the A that are primorial that
the list of 'x' are primes + semiprimes with factors greater
than the primorial's largest factor.  Probably a similar
thing, but not exactly.

cheers,
Jamie


>
>>
>> I wrote a PC program that can generate the pattern for a given n
>> and verified your x's are correct, and also I think I see the
>> interesting pattern, it is mirrored from both sides, ie.
>>
>> 1,2,4,7 (gap 1,2,3)
>> 14,13,11,8 (gap 1,2,3)
>>
>> Is that the pattern you are talking about? :D
>>
>
> It is a consequence of the pattern, but not the pattern itself.
>
>
>> cheers,
>> Jamie
>>
>>
>>
>>>
>>> 6 just happens to be a nice choice because it is a particular common
>>> spacing, and thus the resulting list has a higher prime density than
>>> other lists of this type.  But there is no fundamental difference in the
>>> way these work.
>>>
>>>
>>>
>>>
>>
>

[toc] | [prev] | [next] | [standalone]


#328331

FromJamie M <jmorken@shaw.ca>
Date2016-02-20 05:12 -0800
Message-ID<na9ong$1gsk$1@gioia.aioe.org>
In reply to#328265
On 2/19/2016 2:46 AM, David Brown wrote:
> On 18/02/16 22:39, Jamie M wrote:
>> On 2/18/2016 8:44 AM, David Brown wrote:

>>
>> Hi,
>>
>> You are still missing the point, the formulas contain all the primes:
>>
>> ie
>>
>> each indexed prime n other than 3 or 2 are found by 5+n*6 or 7 +n*6
>> to infinity
>>
>> showing the importance of the 6 multiple.
>>
>
> No, /you/ are missing the point.  You can make any sort of list in that
> style that includes all primes:
>
> n
> 2n + 1
> 3n + 1 and 3n + 2
> 6n + 1 and 6n + 5
> 15n + 1, 15n + 2, 15n + 4, 15n + 7, 15n + 8, 15n + 11, 15n + 13,
> 					and 15n + 14
>
> You might like to see if you can figure out the pattern here for these
> formula.


Hi,

There is no way to really give the formula for large n, since
the count of prime producing formulas as a percentage of n decreases as
n increases, so there are continually larger gaps added, I guess
there is a formula that could show this but I didn't figure it out yet.

But the pattern for the formula for n=60 or n=3600 or n=21600,
has a pattern of a repeating gap sequence of

2,4,2,4,6,2,6,4

so for example for n=3600, the formulas that produce primes:
a + 3600n have values for a:

1,2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,49,53,59,61,67,71,73,77,79,83,89,91,
97,101,103,107,109,113,119,121,127,131,133,137,139,143,149,151,157,161,163,167,
169,173,179,181,187,191,193,197,199,203,209,211,217,221,223,227,229,233,239,241,
247,251,253,257,259,263,... up to 3599

After value 7 in that sequence, ie starting at the gap between 11 and
13, these values of 'a' have a repeating pattern of gaps between
consecutive values of 2,4,2,4,6,2,6,4 repeating

But for ie n=6000 the pattern breaks down as there are some gap=8 and
gap=10 etc..

For n=999, the pattern is different as well, ie:
a + 999n has prime producing values for a:

1,2,3,4,5,7,8,10,11,13,14,16,17,19,20,22,23,25,26,28,29,31,32,34,35,37,38,40,41,
43,44,46,47,49,50,52,53,55,56,58,59,61,62,64,65,67,68,70,71,73,76,77,79,80,82,83,
85,86,88,89,91,92,94,95,97,98,100,101,103,104,106,107,109,110,112,113,115,116,118,
119,121,122,124,125,127,128,130,131,133,134,136,137,139,140,142,143,145,146,149,151,
152,154,155,157,158,160,161,163,164,166,167,169,170,172,173,175,176,178,179,181,182,
184,187,188,190,191,193,194,196,197,199,200,202,203,205,206,208,209,211,212,214,215,
217,218,220,221,223,224,226,227,229,230,232,233,235,236,238,239,241,242,244,245,247,
248,250,251,253,254,256,257,260,262,263,265,266,268,269,271,272,274,275,277,278,280,
281,283,284,286,287,289,290,292,293,295,298,299,301,302,304,305,307,308,310,311,313,
314,316,317,319,320,322,323,325,326,328,329,331,332,334,335,337,338,340,341,343,344,
346,347,349,350,352,353,355,356,358,359,361,362,364,365,367,368,371,373,374,376,377,
379,380,382,383,385,386,388,389,391,392,394,395,397,398,400,401,403,404,406,409,410,
412,413,415,416,418,419,421,422,424,425,427,428,.... up to 998

These values for 'a' have gaps between consecutive values of:

1,1,1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,
1,2,1,2,1,2,3,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,
1,2,1,2,1,2,1,2,1,2,1,3,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,3,1,2,1,2,1,2,1,
2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,3,2,1,
2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,3,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,
2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,3,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,
2,1,2,1,2,1,2,3,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,
2,1,2,1,2,1,2,1,2,1,2,1,3,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,3,1,2,1,2,1,2,
1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,3,2,
1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,3,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,
1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,3,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,
1,2,1,2,1,2,1,2,3,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,
1,2,1,2,1,2,1,2,1,2,1,2,1,3,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,3,1,2,1,2,1,
2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,3,
2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,3,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,
2,1,2,1 (first 663 gaps)

There are definite periodic patterns in that sequence, ie spacings of 72 
values for consecutive value pairs 2,3 3,1 and spacings of 2 values
for consecutive value pairs 1,2, as well as second order periodic 
spacings for digit pairs 1,2

But I don't see a general formula still for all n as you mentioned.

cheers,
Jamie


>
> 6 just happens to be a nice choice because it is a particular common
> spacing, and thus the resulting list has a higher prime density than
> other lists of this type.  But there is no fundamental difference in the
> way these work.
>
>
>
>

[toc] | [prev] | [next] | [standalone]


#328317

FromJasen Betts <jasen@xnet.co.nz>
Date2016-02-20 08:34 +0000
Message-ID<na98e0$amj$4@gonzo.alcatraz>
In reply to#328222
On 2016-02-18, Jamie M <jmorken@shaw.ca> wrote:

> Hi,
>
> You are still missing the point, the formulas contain all the primes:

so does this one: "n"

> i each indexed prime n other than 3 or 2 are found by 5+n*6 or 7 +n*6
> to infinity

  6=3*2
  
that is very significant.

> showing the importance of the 6 multiple.

but obscuring the significance

-- 
  \_(ツ)_

[toc] | [prev] | [next] | [standalone]


#328396

Frompedro <me@privacy.net>
Date2016-02-21 14:32 +0800
Message-ID<eulicbdtcosjshfa8nb22ogcckg8vt6gfk@4ax.com>
In reply to#328193
On Thu, 18 Feb 2016 06:20:48 -0800, Jamie M <jmorken@shaw.ca> wrote:

>On 2/18/2016 4:07 AM, David Brown wrote:
>> On 18/02/16 10:43, Jamie M wrote:
>>> Hi,
>>>
>>>
>>> Here is a set of formulas for computing all prime numbers:
>>
>> How about just the sequence "n" from 1 to infinity?  It will also
>> contain all the prime numbers, and be equally useless, with exactly the
>> same characteristics as your list.
>
>Hi,
>
>Yes it has all the primes but the density of primes is lower,
>ie out of 60 formulas, 43 don't have any primes, yet all 60
>formulas have an equal number of digits, so the density of
>primes is something like 3.5x higher as only 17 formulas out
>of 60, 28% of the overall digits contain all the primes.

Ignoring my previous post, the fact that these formulae merely produce
a series "containing all primes" is as David states, useless.

When we used to produce lists of primes on archaic computers (1960's
and 70's) there were simpler approaches than creating a "super-list"
that STILL REQUIRES TESTING. 

[toc] | [prev] | [next] | [standalone]


#328399

FromJamie M <jmorken@shaw.ca>
Date2016-02-20 22:59 -0800
Message-ID<nabn8l$7r5$2@gioia.aioe.org>
In reply to#328396
On 2/20/2016 10:32 PM, pedro wrote:
> On Thu, 18 Feb 2016 06:20:48 -0800, Jamie M <jmorken@shaw.ca> wrote:
>
>> On 2/18/2016 4:07 AM, David Brown wrote:
>>> On 18/02/16 10:43, Jamie M wrote:
>>>> Hi,
>>>>
>>>>
>>>> Here is a set of formulas for computing all prime numbers:
>>>
>>> How about just the sequence "n" from 1 to infinity?  It will also
>>> contain all the prime numbers, and be equally useless, with exactly the
>>> same characteristics as your list.
>>
>> Hi,
>>
>> Yes it has all the primes but the density of primes is lower,
>> ie out of 60 formulas, 43 don't have any primes, yet all 60
>> formulas have an equal number of digits, so the density of
>> primes is something like 3.5x higher as only 17 formulas out
>> of 60, 28% of the overall digits contain all the primes.
>
> Ignoring my previous post, the fact that these formulae merely produce
> a series "containing all primes" is as David states, useless.
>
> When we used to produce lists of primes on archaic computers (1960's
> and 70's) there were simpler approaches than creating a "super-list"
> that STILL REQUIRES TESTING.
>

Hi,

That is what the next step is to find the formula to make the
list automatically.

cheers,
Jamie

[toc] | [prev] | [next] | [standalone]


#328511

FromDavid Brown <david.brown@hesbynett.no>
Date2016-02-22 11:10 +0100
Message-ID<naemls$9o7$1@dont-email.me>
In reply to#328399
On 21/02/16 07:59, Jamie M wrote:
> On 2/20/2016 10:32 PM, pedro wrote:
>> On Thu, 18 Feb 2016 06:20:48 -0800, Jamie M <jmorken@shaw.ca> wrote:
>>
>>> On 2/18/2016 4:07 AM, David Brown wrote:
>>>> On 18/02/16 10:43, Jamie M wrote:
>>>>> Hi,
>>>>>
>>>>>
>>>>> Here is a set of formulas for computing all prime numbers:
>>>>
>>>> How about just the sequence "n" from 1 to infinity?  It will also
>>>> contain all the prime numbers, and be equally useless, with exactly the
>>>> same characteristics as your list.
>>>
>>> Hi,
>>>
>>> Yes it has all the primes but the density of primes is lower,
>>> ie out of 60 formulas, 43 don't have any primes, yet all 60
>>> formulas have an equal number of digits, so the density of
>>> primes is something like 3.5x higher as only 17 formulas out
>>> of 60, 28% of the overall digits contain all the primes.
>>
>> Ignoring my previous post, the fact that these formulae merely produce
>> a series "containing all primes" is as David states, useless.
>>
>> When we used to produce lists of primes on archaic computers (1960's
>> and 70's) there were simpler approaches than creating a "super-list"
>> that STILL REQUIRES TESTING.
>>
> 
> Hi,
> 
> That is what the next step is to find the formula to make the
> list automatically.
> 

It's easy to make such lists automatically (I would call it an
algorithm, rather than a formula, but it's still easy).

And as has been pointed out, a list of numbers that contains some primes
and some non-primes is useless unless the density of primes is
overwhelmingly large (and for any formula like this, the density
/always/ decreases as you go further out), and/or the non-primes are of
a form that their non-primality can be easily checked.

So nowhere in this process are you going to end up with something
directly useful, and you are highly unlikely to come up with some new
mathematical insight.

However, the whole process can be fun and educational for you as long as
you are clear on that.  And finding sequences that produce an unusually
high prime density can be a very interesting challenge.  The
distribution of primes is, in effect, random - thus there is no end to
the kind of patterns you can find, but the patterns you find will always
break down when you stretch them far enough, and are never /rules/.

Finding sets of the form An + x is pretty much done - working with
ever-greater values of A gets boring very quickly.  Your next step, as I
see it, is to look for different types of formula - I would go for "An²
+ Bn + C" arrangements.  I would also target getting single formula,
rather than a list, with an emphasis on prime density.  Don't worry
about including /every/ prime on the list - that is much less interesting.

But that's just /my/ idea of fun - it's your time you are spending, so
it is your choice..

[toc] | [prev] | [next] | [standalone]


#328597

FromJamie M <jmorken@shaw.ca>
Date2016-02-23 03:05 -0800
Message-ID<nahees$93f$1@gioia.aioe.org>
In reply to#328511
On 2/22/2016 2:10 AM, David Brown wrote:
> On 21/02/16 07:59, Jamie M wrote:
>> On 2/20/2016 10:32 PM, pedro wrote:
>>> On Thu, 18 Feb 2016 06:20:48 -0800, Jamie M <jmorken@shaw.ca> wrote:
>>>
>>>> On 2/18/2016 4:07 AM, David Brown wrote:
>>>>> On 18/02/16 10:43, Jamie M wrote:
>>>>>> Hi,
>>>>>>
>>>>>>
>>>>>> Here is a set of formulas for computing all prime numbers:
>>>>>
>>>>> How about just the sequence "n" from 1 to infinity?  It will also
>>>>> contain all the prime numbers, and be equally useless, with exactly the
>>>>> same characteristics as your list.
>>>>
>>>> Hi,
>>>>
>>>> Yes it has all the primes but the density of primes is lower,
>>>> ie out of 60 formulas, 43 don't have any primes, yet all 60
>>>> formulas have an equal number of digits, so the density of
>>>> primes is something like 3.5x higher as only 17 formulas out
>>>> of 60, 28% of the overall digits contain all the primes.
>>>
>>> Ignoring my previous post, the fact that these formulae merely produce
>>> a series "containing all primes" is as David states, useless.
>>>
>>> When we used to produce lists of primes on archaic computers (1960's
>>> and 70's) there were simpler approaches than creating a "super-list"
>>> that STILL REQUIRES TESTING.
>>>
>>
>> Hi,
>>
>> That is what the next step is to find the formula to make the
>> list automatically.
>>
>
> It's easy to make such lists automatically (I would call it an
> algorithm, rather than a formula, but it's still easy).
>
> And as has been pointed out, a list of numbers that contains some primes
> and some non-primes is useless unless the density of primes is
> overwhelmingly large (and for any formula like this, the density
> /always/ decreases as you go further out), and/or the non-primes are of
> a form that their non-primality can be easily checked.
>
> So nowhere in this process are you going to end up with something
> directly useful, and you are highly unlikely to come up with some new
> mathematical insight.
>
> However, the whole process can be fun and educational for you as long as
> you are clear on that.  And finding sequences that produce an unusually
> high prime density can be a very interesting challenge.  The
> distribution of primes is, in effect, random - thus there is no end to
> the kind of patterns you can find, but the patterns you find will always
> break down when you stretch them far enough, and are never /rules/.
>
> Finding sets of the form An + x is pretty much done - working with
> ever-greater values of A gets boring very quickly.  Your next step, as I
> see it, is to look for different types of formula - I would go for "An²
> + Bn + C" arrangements.  I would also target getting single formula,
> rather than a list, with an emphasis on prime density.  Don't worry
> about including /every/ prime on the list - that is much less interesting.
>
> But that's just /my/ idea of fun - it's your time you are spending, so
> it is your choice..
>


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


[toc] | [prev] | [next] | [standalone]


#328599

FromJamie M <jmorken@shaw.ca>
Date2016-02-23 03:19 -0800
Message-ID<nahf89$aiq$1@gioia.aioe.org>
In reply to#328597
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

[toc] | [prev] | [next] | [standalone]


#328602

FromDavid Brown <david.brown@hesbynett.no>
Date2016-02-23 12:35 +0100
Message-ID<nahg0a$q2q$1@dont-email.me>
In reply to#328597
On 23/02/16 12:05, Jamie M wrote:
> 
> 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.
> 

That's all true - but remember that no matter what A and x you pick, the
percentage of primes drops away rapidly as n increases.  That means you
are not finding anything useful here.  It can be interesting to find
patterns like this - and now you have found out a lot about the patterns
for the simple formula An + x.  Measuring samples for ever-higher values
of A and x will not teach you anything new.

[toc] | [prev] | [next] | [standalone]


#328606

FromJamie M <jmorken@shaw.ca>
Date2016-02-23 04:12 -0800
Message-ID<nahibq$gcf$1@gioia.aioe.org>
In reply to#328602
On 2/23/2016 3:35 AM, David Brown wrote:
> On 23/02/16 12:05, Jamie M wrote:
>>
>> 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.
>>
>
> That's all true - but remember that no matter what A and x you pick, the
> percentage of primes drops away rapidly as n increases.  That means you
> are not finding anything useful here.  It can be interesting to find
> patterns like this - and now you have found out a lot about the patterns
> for the simple formula An + x.  Measuring samples for ever-higher values
> of A and x will not teach you anything new.
>
>

Of course it isn't useful its math, however I do plan on getting to
100% prime output up to a certain range, ie maybe beat n^2+n+41,
which gives primes for the first 40 consecutive integers.

With that last formula I posted 17 + 6930n, it gives primes for
like the first 12 or something, so I have a ways to go still,
but should be doable I'd say.  A will be a lot larger though.

Here is a list of prime generating polynomials:
http://mathworld.wolfram.com/Prime-GeneratingPolynomial.html

Also mentions:

"Jones, Sato, Wada, and Wiens have also found a polynomial of degree 25
in 26 variables whose positive values are exactly the prime numbers
(Flannery and Flannery 2000, p. 51)."

cheers,
Jamie

[toc] | [prev] | [next] | [standalone]


#328609

FromMoufang Loop <moufang.loop@hotmail.invalid>
Date2016-02-23 12:43 +0000
Message-ID<nahk68$stv$1@news.albasani.net>
In reply to#328606
Jamie M wrote:
> On 2/23/2016 3:35 AM, David Brown wrote:
>> On 23/02/16 12:05, Jamie M wrote:
>>>
>>> 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.
>>>
>>
>> That's all true - but remember that no matter what A and x you pick, the
>> percentage of primes drops away rapidly as n increases.  That means you
>> are not finding anything useful here.  It can be interesting to find
>> patterns like this - and now you have found out a lot about the patterns
>> for the simple formula An + x.  Measuring samples for ever-higher values
>> of A and x will not teach you anything new.
>>
>>
>
> Of course it isn't useful its math, however I do plan on getting to
> 100% prime output up to a certain range, ie maybe beat n^2+n+41,
> which gives primes for the first 40 consecutive integers.
>
> With that last formula I posted 17 + 6930n, it gives primes for
> like the first 12 or something, so I have a ways to go still,

"for any k there exists a pair of a and b with the property that L(n) = 
an+b is prime for any n from 0 to k − 1." from 
https://en.wikipedia.org/wiki/Formula_for_primes.

> but should be doable I'd say.  A will be a lot larger though.
>
> Here is a list of prime generating polynomials:
> http://mathworld.wolfram.com/Prime-GeneratingPolynomial.html
>
> Also mentions:
>
> "Jones, Sato, Wada, and Wiens have also found a polynomial of degree 25
> in 26 variables whose positive values are exactly the prime numbers
> (Flannery and Flannery 2000, p. 51)."

This is the result I referred to elsdewhere.

>
> cheers,
> Jamie
>

[toc] | [prev] | [next] | [standalone]


#328614

FromJamie M <jmorken@shaw.ca>
Date2016-02-23 05:12 -0800
Message-ID<nahlrd$o7n$1@gioia.aioe.org>
In reply to#328609
On 2/23/2016 4:43 AM, Moufang Loop wrote:
> Jamie M wrote:
>> On 2/23/2016 3:35 AM, David Brown wrote:
>>> On 23/02/16 12:05, Jamie M wrote:
>>>>
>>>> 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.
>>>>
>>>
>>> That's all true - but remember that no matter what A and x you pick, the
>>> percentage of primes drops away rapidly as n increases.  That means you
>>> are not finding anything useful here.  It can be interesting to find
>>> patterns like this - and now you have found out a lot about the patterns
>>> for the simple formula An + x.  Measuring samples for ever-higher values
>>> of A and x will not teach you anything new.
>>>
>>>
>>
>> Of course it isn't useful its math, however I do plan on getting to
>> 100% prime output up to a certain range, ie maybe beat n^2+n+41,
>> which gives primes for the first 40 consecutive integers.
>>
>> With that last formula I posted 17 + 6930n, it gives primes for
>> like the first 12 or something, so I have a ways to go still,
>
> "for any k there exists a pair of a and b with the property that L(n) =
> an+b is prime for any n from 0 to k − 1." from
> https://en.wikipedia.org/wiki/Formula_for_primes.

Hi,

Wow thanks for that link, that's what I've been working on too :)

I wonder how many unique divisors that value of a has from the wiki page:
5283234035979900

If what I was saying is true it should have way more than average
unique divisors compared to other similar sized numbers.

Also for the b value, 43142746595714191 I guess that is prime :)


>
>> but should be doable I'd say.  A will be a lot larger though.
>>
>> Here is a list of prime generating polynomials:
>> http://mathworld.wolfram.com/Prime-GeneratingPolynomial.html
>>
>> Also mentions:
>>
>> "Jones, Sato, Wada, and Wiens have also found a polynomial of degree 25
>> in 26 variables whose positive values are exactly the prime numbers
>> (Flannery and Flannery 2000, p. 51)."
>
> This is the result I referred to elsdewhere.

Ya I remember you posting it, thanks.

cheers,
Jamie


>
>>
>> cheers,
>> Jamie
>>
>

[toc] | [prev] | [next] | [standalone]


#328616

FromMoufang Loop <moufang.loop@hotmail.invalid>
Date2016-02-23 13:48 +0000
Message-ID<nahnvi$4di$1@news.albasani.net>
In reply to#328614
Jamie M wrote:
> On 2/23/2016 4:43 AM, Moufang Loop wrote:
>> Jamie M wrote:
>>> On 2/23/2016 3:35 AM, David Brown wrote:
>>>> On 23/02/16 12:05, Jamie M wrote:
>>>>>
>>>>> 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.
>>>>>
>>>>
>>>> That's all true - but remember that no matter what A and x you pick,
>>>> the
>>>> percentage of primes drops away rapidly as n increases.  That means you
>>>> are not finding anything useful here.  It can be interesting to find
>>>> patterns like this - and now you have found out a lot about the
>>>> patterns
>>>> for the simple formula An + x.  Measuring samples for ever-higher
>>>> values
>>>> of A and x will not teach you anything new.
>>>>
>>>>
>>>
>>> Of course it isn't useful its math, however I do plan on getting to
>>> 100% prime output up to a certain range, ie maybe beat n^2+n+41,
>>> which gives primes for the first 40 consecutive integers.
>>>
>>> With that last formula I posted 17 + 6930n, it gives primes for
>>> like the first 12 or something, so I have a ways to go still,
>>
>> "for any k there exists a pair of a and b with the property that L(n) =
>> an+b is prime for any n from 0 to k − 1." from
>> https://en.wikipedia.org/wiki/Formula_for_primes.
>
> Hi,
>
> Wow thanks for that link, that's what I've been working on too :)
>
> I wonder how many unique divisors that value of a has from the wiki page:
> 5283234035979900

2^2 3 5^2 7^2 11 13 17 19 23 373 907  (14 prime factors, 11 distinct) 
says Wolframalpha.

> If what I was saying is true it should have way more than average
> unique divisors compared to other similar sized numbers.
>
> Also for the b value, 43142746595714191 I guess that is prime

Yes.

> :)
>
>
>>
>>> but should be doable I'd say.  A will be a lot larger though.
>>>
>>> Here is a list of prime generating polynomials:
>>> http://mathworld.wolfram.com/Prime-GeneratingPolynomial.html
>>>
>>> Also mentions:
>>>
>>> "Jones, Sato, Wada, and Wiens have also found a polynomial of degree 25
>>> in 26 variables whose positive values are exactly the prime numbers
>>> (Flannery and Flannery 2000, p. 51)."
>>
>> This is the result I referred to elsdewhere.
>
> Ya I remember you posting it, thanks.
>
> cheers,
> Jamie
>
>
>>
>>>
>>> cheers,
>>> Jamie
>>>
>>
>

[toc] | [prev] | [next] | [standalone]


#328620

FromJamie M <jmorken@shaw.ca>
Date2016-02-23 06:07 -0800
Message-ID<nahp38$u9o$2@gioia.aioe.org>
In reply to#328616
On 2/23/2016 5:48 AM, Moufang Loop wrote:
> Jamie M wrote:
>> On 2/23/2016 4:43 AM, Moufang Loop wrote:
>>> Jamie M wrote:
>>>> On 2/23/2016 3:35 AM, David Brown wrote:
>>>>> On 23/02/16 12:05, Jamie M wrote:
>>>>>>
>>>>>> 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.
>>>>>>
>>>>>
>>>>> That's all true - but remember that no matter what A and x you pick,
>>>>> the
>>>>> percentage of primes drops away rapidly as n increases.  That means
>>>>> you
>>>>> are not finding anything useful here.  It can be interesting to find
>>>>> patterns like this - and now you have found out a lot about the
>>>>> patterns
>>>>> for the simple formula An + x.  Measuring samples for ever-higher
>>>>> values
>>>>> of A and x will not teach you anything new.
>>>>>
>>>>>
>>>>
>>>> Of course it isn't useful its math, however I do plan on getting to
>>>> 100% prime output up to a certain range, ie maybe beat n^2+n+41,
>>>> which gives primes for the first 40 consecutive integers.
>>>>
>>>> With that last formula I posted 17 + 6930n, it gives primes for
>>>> like the first 12 or something, so I have a ways to go still,
>>>
>>> "for any k there exists a pair of a and b with the property that L(n) =
>>> an+b is prime for any n from 0 to k − 1." from
>>> https://en.wikipedia.org/wiki/Formula_for_primes.
>>
>> Hi,
>>
>> Wow thanks for that link, that's what I've been working on too :)
>>
>> I wonder how many unique divisors that value of a has from the wiki page:
>> 5283234035979900
>
> 2^2 3 5^2 7^2 11 13 17 19 23 373 907  (14 prime factors, 11 distinct)
> says Wolframalpha.


It is similar to a primorial number for having at least one of all the
prime factors up to 23.  Wolfram alpha doesn't compute the divisors
for it unfortunately, too big I guess.



>
>> If what I was saying is true it should have way more than average
>> unique divisors compared to other similar sized numbers.
>>
>> Also for the b value, 43142746595714191 I guess that is prime
>
> Yes.
>
>> :)
>>
>>

[toc] | [prev] | [next] | [standalone]


#328615

FromJamie M <jmorken@shaw.ca>
Date2016-02-23 05:23 -0800
Message-ID<nahmgq$pds$1@gioia.aioe.org>
In reply to#328609
On 2/23/2016 4:43 AM, Moufang Loop wrote:

> "for any k there exists a pair of a and b with the property that L(n) =
> an+b is prime for any n from 0 to k − 1." from
> https://en.wikipedia.org/wiki/Formula_for_primes.


Hi,

 From the related page on that:

https://en.wikipedia.org/wiki/Green%E2%80%93Tao_theorem

It looks like they are finding these formulas with brute
force:


"The proof of the Green–Tao does not show how to find the progressions 
of primes; it merely proves they exist. There has been separate 
computational work to find large arithmetic progressions in the primes. 
On January 18, 2007, Jarosław Wróblewski found the first known case of 
24 primes in arithmetic progression:[4]

     468,395,662,504,823 + 205,619 · 223,092,870 · n, for n = 0 to 23.

The constant 223092870 here is the product of the prime numbers up to 23 
(see primorial).

On May 17, 2008, Wróblewski and Raanan Chermoni found the first known 
case of 25 primes:

     6,171,054,912,832,631 + 366,384 · 223,092,870 · n, for n = 0 to 24.

On April 12, 2010, Benoãt Perichon with software by Wróblewski and Geoff 
Reynolds in a distributed PrimeGrid project found the first known case 
of 26 primes (sequence A204189 in OEIS):

     43,142,746,595,714,191 + 23,681,770 · 223,092,870 · n, for n = 0 to 
25.
"


So they say they don't know how to find the progression of primes,
but really using that best formula they show:

43,142,746,595,714,191 + 23,681,770 · 223,092,870 · n

I can almost guarantee that 23,681,770 · 223,092,870 (A)
is a number with very high unique divisor count, and
43,142,746,595,714,191 is a prime, it is larger than
the product of 23,681,770 · 223,092,870 which is:
5,283,186,672,439,900 though so is different from the
one I'm doing.

But I would guess that 5,283,186,672,439,900 has a lot
of unique factors anyway..

I think it is possible to find smaller numbers than these
with 25 consecutive primes though.

cheers,
Jamie





>
>> but should be doable I'd say.  A will be a lot larger though.
>>
>> Here is a list of prime generating polynomials:
>> http://mathworld.wolfram.com/Prime-GeneratingPolynomial.html
>>
>> Also mentions:
>>
>> "Jones, Sato, Wada, and Wiens have also found a polynomial of degree 25
>> in 26 variables whose positive values are exactly the prime numbers
>> (Flannery and Flannery 2000, p. 51)."
>
> This is the result I referred to elsdewhere.
>
>>
>> cheers,
>> Jamie
>>
>

[toc] | [prev] | [next] | [standalone]


Page 2 of 4 — ← Prev page 1 [2] 3 4  Next page →

Back to top | Article view | sci.math


csiph-web