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


Groups > sci.electronics.design > #399345

Re: set of formulas for computing all prime numbers

From Jamie M <jmorken@shaw.ca>
Newsgroups sci.electronics.design, sci.math
Subject Re: set of formulas for computing all prime numbers
Date 2016-02-18 13:39 -0800
Organization Aioe.org NNTP Server
Message-ID <na5dn3$14j5$1@gioia.aioe.org> (permalink)
References (1 earlier) <na4c1d$2ml$1@dont-email.me> <na4k04$1ljq$1@gioia.aioe.org> <na4lea$67c$1@dont-email.me> <na4mrr$1r96$1@gioia.aioe.org> <na4s73$217$1@dont-email.me>

Cross-posted to 2 groups.

Show all headers | View raw


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.

cheers,
Jamie

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


Thread

set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 01:43 -0800
  Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 01:53 -0800
    Re: set of formulas for computing all prime numbers pedro <me@privacy.net> - 2016-02-21 14:21 +0800
  Re: set of formulas for computing all prime numbers Virgil <VIRGIL@VIRGIL.com> - 2016-02-18 02:53 -0700
    Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 01:55 -0800
  Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 02:49 -0800
  Re: set of formulas for computing all prime numbers DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-02-18 11:26 +0000
  Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-18 13:07 +0100
    Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 06:20 -0800
      Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-18 15:48 +0100
        Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 06:53 -0800
          Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-18 17:37 +0100
        Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 07:09 -0800
          Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-18 17:44 +0100
            Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 13:18 -0800
              Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-19 11:40 +0100
                Re: set of formulas for computing all prime numbers DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-02-19 11:32 +0000
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 02:15 -0800
            Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-18 13:39 -0800
              Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-19 11:46 +0100
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 02:35 -0800
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 02:49 -0800
                Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-22 10:57 +0100
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-22 03:18 -0800
                Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-22 10:54 +0100
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-22 03:26 -0800
                Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 05:12 -0800
              Re: set of formulas for computing all prime numbers Jasen Betts <jasen@xnet.co.nz> - 2016-02-20 08:34 +0000
      Re: set of formulas for computing all prime numbers pedro <me@privacy.net> - 2016-02-21 14:32 +0800
        Re: set of formulas for computing all prime numbers Jamie M <jmorken@shaw.ca> - 2016-02-20 22:59 -0800
          Re: set of formulas for computing all prime numbers David Brown <david.brown@hesbynett.no> - 2016-02-22 11:10 +0100
  Re: set of formulas for computing all prime numbers 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

csiph-web