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


Groups > sci.electronics.design > #399272 > 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:44 -0800
Articles 20 on this page of 47 — 13 participants

Back to article view | Back to sci.electronics.design


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 jack4747@gmail.com - 2016-02-18 04:22 -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 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 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-18 06:45 -0800
    Re: set of formulas for computing all prime numbers bloggs.fredbloggs.fred@gmail.com - 2016-02-20 06:53 -0800
      Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 20:44 -0800

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


#399555

FromJamie M <jmorken@shaw.ca>
Date2016-02-20 02:35 -0800
Message-ID<na9fi7$123o$1@gioia.aioe.org>
In reply to#399429
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]


#399557

FromJamie M <jmorken@shaw.ca>
Date2016-02-20 02:49 -0800
Message-ID<na9gcp$139n$2@gioia.aioe.org>
In reply to#399555
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]


#399836

FromDavid Brown <david.brown@hesbynett.no>
Date2016-02-22 10:57 +0100
Message-ID<naels9$6ji$2@dont-email.me>
In reply to#399557
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]


#399840

FromJamie M <jmorken@shaw.ca>
Date2016-02-22 03:18 -0800
Message-ID<naeqqh$1src$1@gioia.aioe.org>
In reply to#399836
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]


#399835

FromDavid Brown <david.brown@hesbynett.no>
Date2016-02-22 10:54 +0100
Message-ID<naeln7$6ji$1@dont-email.me>
In reply to#399555
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]


#399843

FromJamie M <jmorken@shaw.ca>
Date2016-02-22 03:26 -0800
Message-ID<naer90$1tml$2@gioia.aioe.org>
In reply to#399835
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]


#399573

FromJamie M <jmorken@shaw.ca>
Date2016-02-20 05:12 -0800
Message-ID<na9ong$1gsk$1@gioia.aioe.org>
In reply to#399429
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]


#399549

FromJasen Betts <jasen@xnet.co.nz>
Date2016-02-20 08:34 +0000
Message-ID<na98e0$amj$4@gonzo.alcatraz>
In reply to#399345
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]


#399683

Frompedro <me@privacy.net>
Date2016-02-21 14:32 +0800
Message-ID<eulicbdtcosjshfa8nb22ogcckg8vt6gfk@4ax.com>
In reply to#399295
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]


#399685

FromJamie M <jmorken@shaw.ca>
Date2016-02-20 22:59 -0800
Message-ID<nabn8l$7r5$2@gioia.aioe.org>
In reply to#399683
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]


#399838

FromDavid Brown <david.brown@hesbynett.no>
Date2016-02-22 11:10 +0100
Message-ID<naemls$9o7$1@dont-email.me>
In reply to#399685
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]


#399286

Fromjack4747@gmail.com
Date2016-02-18 04:22 -0800
Message-ID<dfab1997-23f0-4504-87bd-fff0bf54fc42@googlegroups.com>
In reply to#399272
Il giorno giovedì 18 febbraio 2016 10:43:54 UTC+1, Jamie M ha scritto:
> Hi,
> 
> 
> Here is a set of formulas for computing all prime numbers:
> 
> for each go from n=0 to n=infinity and the combined

> not all will be prime

so it's useless.

Bye Jack

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


#399287

FromMoufang Loop <moufang.loop@hotmail.invalid>
Date2016-02-18 12:25 +0000
Message-ID<na4d7h$o4r$1@news.albasani.net>
In reply to#399272
Jamie M wrote:
> Hi,
>
>
> Here is a set of formulas for computing all prime numbers:

There are polynomials whose positive values (for positive integer values 
of the variables) are all and only the prime numbers.  I think the first 
one had 26 variables.  Perhaps there are examples with fewer than that now.

> for each go from n=0 to n=infinity and the combined
> outputs will contain all the primes
>
> 1+60n
> 3+60n
> 7+60n
> 11+60n
> 13+60n
> 17+60n
> 19+60n
> 23+60n
> 29+60n
> 31+60n
> 37+60n
> 41+60n
> 43+60n
> 47+60n
> 49+60n
> 53+60n
> 59+60n
>
> ie for 1+60n
>
> for n = 1,2,3
> 61=1+60*1
> 121=1+60*2
> 181=1+60*3
>
> not all will be prime, but the above formulas will have all the
> primes, and none of them will be repeated, ie each formula will
> produce a unique set of prime numbers, when combined give all
> the primes.
>
> If anyone is interested in how I figured this out I will give a full
> description :D
>
> cheers,
> Jamie
>

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


#399294

FromMartin Brown <|||newspam|||@nezumi.demon.co.uk>
Date2016-02-18 14:16 +0000
Message-ID<na4jp5$1lan$1@gioia.aioe.org>
In reply to#399287
On 18/02/2016 12:25, Moufang Loop wrote:
> Jamie M wrote:
>> Hi,
>>
>>
>> Here is a set of formulas for computing all prime numbers:
>
> There are polynomials whose positive values (for positive integer values
> of the variables) are all and only the prime numbers.  I think the first
> one had 26 variables.  Perhaps there are examples with fewer than that now.

Are there? I thought there was a proof that no such polynomial could 
exist with constant coefficients. A set of diophantine equations and an 
inequality relation do exist to predict primes but it is messy.

As toy models for predicting primes that look OK for a while

p = 41 + n + n^2

is hard to beat n = 0..39 are all primes, but for n = 40  p= 41^2

-- 
Regards,
Martin Brown

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


#399301

FromMoufang Loop <moufang.loop@hotmail.invalid>
Date2016-02-18 14:53 +0000
Message-ID<na4lth$89b$1@news.albasani.net>
In reply to#399294
Martin Brown wrote:
> On 18/02/2016 12:25, Moufang Loop wrote:
>> Jamie M wrote:
>>> Hi,
>>>
>>>
>>> Here is a set of formulas for computing all prime numbers:
>>
>> There are polynomials whose positive values (for positive integer values
>> of the variables) are all and only the prime numbers.  I think the first
>> one had 26 variables.  Perhaps there are examples with fewer than that
>> now.
>
> Are there? I thought there was a proof that no such polynomial

In one variable.

> could
> exist with constant coefficients. A set of diophantine equations and an
> inequality relation do exist to predict primes but it is messy.
>
> As toy models for predicting primes that look OK for a while
>
> p = 41 + n + n^2
>
> is hard to beat n = 0..39 are all primes, but for n = 40  p= 41^2
>

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


#399853

FromMoufang Loop <moufang.loop@hotmail.invalid>
Date2016-02-22 14:15 +0000
Message-ID<naf56n$9ld$1@news.albasani.net>
In reply to#399301
Moufang Loop wrote:
> Martin Brown wrote:
>> On 18/02/2016 12:25, Moufang Loop wrote:
>>> Jamie M wrote:
>>>> Hi,
>>>>
>>>>
>>>> Here is a set of formulas for computing all prime numbers:
>>>
>>> There are polynomials whose positive values (for positive integer values
>>> of the variables) are all and only the prime numbers.  I think the first
>>> one had 26 variables.  Perhaps there are examples with fewer than that
>>> now.
>>
>> Are there? I thought there was a proof that no such polynomial
>
> In one variable.

Here's an interesting fact.  There is a real number theta such that 
floor(theta^(3^n)) is always prime for n = 1,2,...

http://www.ams.org/journals/bull/1947-53-06/S0002-9904-1947-08849-2/S0002-9904-1947-08849-2.pdf

The last I heard [Hardy & Wright, 4th ed], it is a useless fact because 
to find theta with greater and greater accuracy one has to find larger 
and larger primes...  But that was in 1960 and it may be that theta has 
been found by independent means since.

>> could
>> exist with constant coefficients. A set of diophantine equations and an
>> inequality relation do exist to predict primes but it is messy.
>>
>> As toy models for predicting primes that look OK for a while
>>
>> p = 41 + n + n^2
>>
>> is hard to beat n = 0..39 are all primes, but for n = 40  p= 41^2
>>
>

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


#399855

FromMoufang Loop <moufang.loop@hotmail.invalid>
Date2016-02-22 14:18 +0000
Message-ID<naf5b2$9ld$2@news.albasani.net>
In reply to#399853
Moufang Loop wrote:
> Moufang Loop wrote:
>> Martin Brown wrote:
>>> On 18/02/2016 12:25, Moufang Loop wrote:
>>>> Jamie M wrote:
>>>>> Hi,
>>>>>
>>>>>
>>>>> Here is a set of formulas for computing all prime numbers:
>>>>
>>>> There are polynomials whose positive values (for positive integer
>>>> values
>>>> of the variables) are all and only the prime numbers.  I think the
>>>> first
>>>> one had 26 variables.  Perhaps there are examples with fewer than that
>>>> now.
>>>
>>> Are there? I thought there was a proof that no such polynomial
>>
>> In one variable.
>
> Here's an interesting fact.  There is a real number theta such that
> floor(theta^(3^n)) is always prime for n = 1,2,...
>
> http://www.ams.org/journals/bull/1947-53-06/S0002-9904-1947-08849-2/S0002-9904-1947-08849-2.pdf

Also https://cs.uwaterloo.ca/journals/JIS/VOL8/Caldwell/caldwell78.pdf

>
>
> The last I heard [Hardy & Wright, 4th ed], it is a useless fact because
> to find theta with greater and greater accuracy one has to find larger
> and larger primes...  But that was in 1960 and it may be that theta has
> been found by independent means since.
>
>>> could
>>> exist with constant coefficients. A set of diophantine equations and an
>>> inequality relation do exist to predict primes but it is messy.
>>>
>>> As toy models for predicting primes that look OK for a while
>>>
>>> p = 41 + n + n^2
>>>
>>> is hard to beat n = 0..39 are all primes, but for n = 40  p= 41^2
>>>
>>
>

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


#399303

FromDavid Brown <david.brown@hesbynett.no>
Date2016-02-18 15:58 +0100
Message-ID<na4m1j$8hv$1@dont-email.me>
In reply to#399294
On 18/02/16 15:16, Martin Brown wrote:
> On 18/02/2016 12:25, Moufang Loop wrote:
>> Jamie M wrote:
>>> Hi,
>>>
>>>
>>> Here is a set of formulas for computing all prime numbers:
>>
>> There are polynomials whose positive values (for positive integer values
>> of the variables) are all and only the prime numbers.  I think the first
>> one had 26 variables.  Perhaps there are examples with fewer than that
>> now.
> 
> Are there? I thought there was a proof that no such polynomial could
> exist with constant coefficients. A set of diophantine equations and an
> inequality relation do exist to predict primes but it is messy.
> 

The inequality generated from the Diophantine equations gives you the
polynomial whose positive values (for positive integer values) are
primes.  You are talking about the same thing, just seen from a slightly
different angle.

It's not particularly useful in practice, of course, as you try to
enumerate through 26 simultaneous sequences of positive integers and
figure out which sets give you positive results (most choices give you
negative results).

And (according to the infallible Wikipedia) this can be reduced to a
polynomial in only 9 variables - but it is of degree 10^45, which is
quite inconvenient.

> As toy models for predicting primes that look OK for a while
> 
> p = 41 + n + n^2
> 
> is hard to beat n = 0..39 are all primes, but for n = 40  p= 41^2
> 

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


#399328

FromR Kym Horsell <kym@kymhorsell.com>
Date2016-02-18 17:34 +0000
Message-ID<na4vb0$ofp$2@odin.sdf-eu.org>
In reply to#399294
In sci.math Martin Brown <|||newspam|||@nezumi.demon.co.uk> wrote:
> On 18/02/2016 12:25, Moufang Loop wrote:
>> Jamie M wrote:
>>> Hi,
>>> Here is a set of formulas for computing all prime numbers:
>> There are polynomials whose positive values (for positive integer values
>> of the variables) are all and only the prime numbers.  I think the first
>> one had 26 variables.  Perhaps there are examples with fewer than that now.
> Are there? I thought there was a proof that no such polynomial could 
> exist with constant coefficients. A set of diophantine equations and an 
> inequality relation do exist to predict primes but it is messy.
> As toy models for predicting primes that look OK for a while
> p = 41 + n + n^2
> is hard to beat n = 0..39 are all primes, but for n = 40  p= 41^2

https://en.wikipedia.org/wiki/Formula_for_primes

--
God @TheTweetOfGod 8:31 PM - 19 Apr 2014
THE NEW 10 COMMANDMENTS 
1 Laugh. 
2 Read. 
3 Say please. 
4 Floss. 
5 Doubt. 
6 Exercise. 
7 Learn. 
8 Don't hate. 
9 Cut the bullshit. 
10 Chill.
Retweets 24,787 Likes 19,364

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


#399307

FromJim Burns <james.g.burns@att.net>
Date2016-02-18 10:46 -0500
Message-ID<56C5E74A.2080407@att.net>
In reply to#399287
On 2/18/2016 7:25 AM, Moufang Loop wrote:
> Jamie M wrote:

>> Here is a set of formulas for computing all prime numbers:
>
> There are polynomials whose positive values (for positive
> integer values  of the variables) are all and only the prime
>  numbers. I think the first  one had 26 variables.  Perhaps
>  there are examples with fewer than that now.

I like this polynomial[1] not because I'll ever use it,
but because it lubricates my imagination when I am trying
to think about Goedel's incompleteness proof.

If I understand things properly, this prime polynomial[1]
_encodes_ the definition of prime number in arithmetic.
And it looks truly intimidating.

And Goedel produces (or proves exists) soemthing which _encodes_
the axioms and inference rules for a particular formal system.
And which makes the prime polynimial[1] look trivial in
comparison.

I have to say Goedel's incompleteness is not intuitive to
me, though I believe it when others tell me it's valid.
HOWEVER, when I think about what this unprovable sentence
probably looks like, it becomes more intuitive to me.

[1]
<https://en.wikipedia.org/wiki/Formula_for_primes#Formula_based_on_a_system_of_Diophantine_equations>

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


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

Back to top | Article view | sci.electronics.design


csiph-web