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


Groups > sci.electronics.design > #399341

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:18 -0800
Organization Aioe.org NNTP Server
Message-ID <na5cef$12na$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,

Ok what about this pattern I found in the distribution of primes:

I generated a list of all the primes in the first 1billion digits,
then counted the spacing between all the primes, and got this result:

name is the spacing between consecutive primes, and result is the count
of how many times that spacing occurred, as you can see from the below,
the spacing of 6 is the most common gap between primes, and also there
is an oscillation of the spacing, where multiples of 6 spacings always
have more primes!  That is a fantastic result and makes me equivalent
to a genius with a capital J (jenius).

Take a look at the below if you don't believe me, ie for name=6 that is
the count of all the primes in the first 1billion digits of numbers
with a prime spacing of 6.

How do you explain that there are these peaks in the prime
distribution on multiples of 6 if it is so simple!?

cheers,
Jamie


{ Name = 1, Count = 1 }
{ Name = 2, Count = 3424506 }
{ Name = 4, Count = 3424679 }
{ Name = 6, Count = 6089791 }
{ Name = 8, Count = 2695109 }
{ Name = 10, Count = 3484767 }
{ Name = 12, Count = 4468957 }
{ Name = 14, Count = 2464565 }
{ Name = 16, Count = 1846097 }
{ Name = 18, Count = 3351032 }
{ Name = 20, Count = 1824043 }
{ Name = 22, Count = 1569679 }
{ Name = 24, Count = 2367474 }
{ Name = 26, Count = 1119585 }
{ Name = 28, Count = 1219243 }
{ Name = 30, Count = 2177991 }
{ Name = 32, Count = 683896 }
{ Name = 34, Count = 719531 }
{ Name = 36, Count = 1171524 }
{ Name = 38, Count = 548746 }
{ Name = 40, Count = 648780 }
{ Name = 42, Count = 954456 }
{ Name = 44, Count = 389634 }
{ Name = 46, Count = 334720 }
{ Name = 48, Count = 577247 }
{ Name = 50, Count = 328066 }
{ Name = 52, Count = 245804 }
{ Name = 54, Count = 410754 }
{ Name = 56, Count = 211462 }
{ Name = 58, Count = 181948 }
{ Name = 60, Count = 371839 }
{ Name = 62, Count = 115558 }
{ Name = 64, Count = 118951 }
{ Name = 66, Count = 216787 }
{ Name = 68, Count = 88396 }
{ Name = 70, Count = 125564 }
{ Name = 72, Count = 126663 }
{ Name = 74, Count = 62526 }
{ Name = 76, Count = 55113 }
{ Name = 78, Count = 105313 }
{ Name = 80, Count = 53522 }
{ Name = 82, Count = 37982 }
{ Name = 84, Count = 78077 }
{ Name = 86, Count = 27793 }
{ Name = 88, Count = 28878 }
{ Name = 90, Count = 58057 }
{ Name = 92, Count = 19282 }
{ Name = 94, Count = 17669 }
{ Name = 96, Count = 31078 }
{ Name = 98, Count = 16175 }
{ Name = 100, Count = 16900 }
{ Name = 102, Count = 22393 }
{ Name = 104, Count = 10310 }
{ Name = 106, Count = 8719 }
{ Name = 108, Count = 15459 }
{ Name = 110, Count = 9065 }
{ Name = 112, Count = 7139 }
{ Name = 114, Count = 10892 }
{ Name = 116, Count = 4710 }
{ Name = 118, Count = 4502 }
{ Name = 120, Count = 9621 }
{ Name = 122, Count = 2975 }
{ Name = 124, Count = 3136 }
{ Name = 126, Count = 5863 }
{ Name = 128, Count = 2043 }
{ Name = 130, Count = 2813 }
{ Name = 132, Count = 3510 }
{ Name = 134, Count = 1487 }
{ Name = 136, Count = 1297 }
{ Name = 138, Count = 2589 }
{ Name = 140, Count = 1516 }
{ Name = 142, Count = 953 }
{ Name = 144, Count = 1555 }
{ Name = 146, Count = 668 }
{ Name = 148, Count = 724 }
{ Name = 150, Count = 1486 }
{ Name = 152, Count = 506 }
{ Name = 154, Count = 583 }
{ Name = 156, Count = 798 }
{ Name = 158, Count = 306 }
{ Name = 160, Count = 360 }
{ Name = 162, Count = 534 }
{ Name = 164, Count = 247 }
{ Name = 166, Count = 182 }
{ Name = 168, Count = 443 }
{ Name = 170, Count = 198 }
{ Name = 172, Count = 158 }
{ Name = 174, Count = 255 }
{ Name = 176, Count = 128 }
{ Name = 178, Count = 106 }
{ Name = 180, Count = 200 }
{ Name = 182, Count = 80 }
{ Name = 184, Count = 89 }
{ Name = 186, Count = 101 }
{ Name = 188, Count = 33 }
{ Name = 190, Count = 63 }
{ Name = 192, Count = 74 }
{ Name = 194, Count = 32 }
{ Name = 196, Count = 41 }
{ Name = 198, Count = 73 }
{ Name = 200, Count = 28 }
{ Name = 202, Count = 23 }
{ Name = 204, Count = 46 }
{ Name = 206, Count = 13 }
{ Name = 208, Count = 18 }
{ Name = 210, Count = 48 }
{ Name = 212, Count = 12 }
{ Name = 214, Count = 11 }
{ Name = 216, Count = 15 }
{ Name = 218, Count = 6 }
{ Name = 220, Count = 12 }
{ Name = 222, Count = 11 }
{ Name = 224, Count = 6 }
{ Name = 226, Count = 6 }
{ Name = 228, Count = 3 }
{ Name = 230, Count = 3 }
{ Name = 232, Count = 1 }
{ Name = 234, Count = 13 }
{ Name = 236, Count = 5 }
{ Name = 238, Count = 1 }
{ Name = 240, Count = 5 }
{ Name = 242, Count = 4 }
{ Name = 244, Count = 2 }
{ Name = 246, Count = 4 }
{ Name = 248, Count = 4 }
{ Name = 250, Count = 4 }
{ Name = 252, Count = 1 }
{ Name = 260, Count = 1 }
{ Name = 276, Count = 1 }
{ Name = 282, Count = 1 }





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