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


Groups > sci.electronics.design > #408249 > unrolled thread

anyone take a shot at this

Started byJamie M <jmorken@shaw.ca>
First post2016-04-19 14:53 -0700
Last post2016-04-21 00:44 -0700
Articles 6 on this page of 26 — 9 participants

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


Contents

  anyone take a shot at this Jamie M <jmorken@shaw.ca> - 2016-04-19 14:53 -0700
    Re: anyone take a shot at this CORRECTED Jamie M <jmorken@shaw.ca> - 2016-04-19 14:58 -0700
    Re: anyone take a shot at this DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-19 22:39 -0400
      Re: anyone take a shot at this bitrex <bitrex@de.lete.earthlink.net> - 2016-04-20 14:02 -0400
        Re: anyone take a shot at this John S <Sophi.2@invalid.org> - 2016-04-20 13:13 -0500
          Re: anyone take a shot at this DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-20 16:34 -0400
        Re: anyone take a shot at this DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-20 16:31 -0400
          Re: anyone take a shot at this bitrex <bitrex@de.lete.earthlink.net> - 2016-04-20 18:32 -0400
            Re: anyone take a shot at this DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-20 20:50 -0400
    Re: anyone take a shot at this mrdarrett@gmail.com - 2016-04-20 14:04 -0700
      Re: anyone take a shot at this bill.sloman@ieee.org - 2016-04-20 23:36 -0700
        Re: anyone take a shot at this mrdarrett@gmail.com - 2016-04-21 11:03 -0700
          Re: anyone take a shot at this Jamie M <jmorken@shaw.ca> - 2016-04-21 16:57 -0700
          Re: anyone take a shot at this Jasen Betts <jasen@xnet.co.nz> - 2016-04-21 23:50 +0000
            Re: anyone take a shot at this mrdarrett@gmail.com - 2016-04-22 15:16 -0700
              Re: anyone take a shot at this Jasen Betts <jasen@xnet.co.nz> - 2016-04-23 08:25 +0000
                Re: anyone take a shot at this mrdarrett@gmail.com - 2016-04-23 15:36 -0700
                  Re: anyone take a shot at this Jasen Betts <jasen@xnet.co.nz> - 2016-04-24 01:24 +0000
          Re: anyone take a shot at this Bill Sloman <bill.sloman@ieee.org> - 2016-04-24 13:31 +1000
            Re: anyone take a shot at this bill.sloman@ieee.org - 2016-04-23 20:35 -0700
            Re: anyone take a shot at this mrdarrett@gmail.com - 2016-04-23 21:26 -0700
              Re: anyone take a shot at this bill.sloman@ieee.org - 2016-04-24 00:06 -0700
                Re: anyone take a shot at this Jasen Betts <jasen@xnet.co.nz> - 2016-04-24 12:05 +0000
    Re: anyone take a shot at this bloggs.fredbloggs.fred@gmail.com - 2016-04-20 18:18 -0700
      Re: anyone take a shot at this Jamie M <jmorken@shaw.ca> - 2016-04-21 00:35 -0700
        Re: anyone take a shot at this bill.sloman@ieee.org - 2016-04-21 00:44 -0700

Page 2 of 2 — ← Prev page 1 [2]


#408884

Frommrdarrett@gmail.com
Date2016-04-23 21:26 -0700
Message-ID<5031a8c8-78d0-4572-baba-3f1851392d2f@googlegroups.com>
In reply to#408876
On Saturday, April 23, 2016 at 8:31:18 PM UTC-7, Bill Sloman wrote:
> On 22/04/2016 4:03 AM, mrdarrett@gmail.com wrote:
> > On Wednesday, April 20, 2016 at 11:36:41 PM UTC-7, bill....@ieee.org wrote:
> >> On Thursday, April 21, 2016 at 7:04:48 AM UTC+10, mrda...@gmail.com wrote:
> >>> On Tuesday, April 19, 2016 at 2:53:19 PM UTC-7, Jamie M wrote:
> 
> <snip>
> 
> >>> Good luck!
> >>
> >> He'd need it - on present evidence what he actually needs is sci.remedial.math
> >>
> >> In fact he's explicitly rejected posting anywhere where anybody might be interested in what he posts - he wants to work it out for himself, which would probably need a brain transplant, or at least an implant, granting that nature seems to have drastically short-changed him in that department.
> >
> > Oh, I don't know.  His post inspired me to look at the Sieve of Eratosthenes.  Quite fun.  There's a sample sieve code with the FreeBasic compiler.  After some modification (it only finds the first million primes) it took my computer just 7.5 seconds to find the first 25 million primes.  I'd forgotten how much fun such things could be.  Of course, to find these primes, about 2 gigabytes of RAM for array space are needed... I'm sure the algorithm could be refined further by avoiding storage of multiples of two...
> >
> > Carry on!
> 
> I've known about the Sieve of Eratosthenes for many years now. In fact I 
> was inspired to try to work out a probablistic estimator of it's success 
> a couple of months ago.
> 
> The simplest predictor is that the chance of an individual application 
> of the sieve will find a non-prime in a collection of n numbers is
> 
> 1/(1-1/p) where p is the prime being tested for.
> 
> This doesn't work, because the population of numbers being sieved is 
> progressively depleted of smaller primes as the test progresses. To 
> improve it, you have to know (or guess) the number of primes - p_a - 
> below the first number in the sample being tested - think Legendre 
> Conjecture - and guess the number of primes in the sample being tested p_b.


I'm trying to understand your p_a and p_b.

From this list,
http://www.rsok.com/~jrm/first100primes.html

Considering the first primes less than 100, would p_b be 100?  And p_a would be 25?



> As you work your way through p(a) the chance of finding a number 
> divisible by a known prime goes up at the "k"th step by
> 
> (p_a + p_b)/(p_a + p_b - k)
> 
> It seemed to work fairly well when I tried it out in Excel, but I 
> couldn't be bothered getting into my Linux partition and testing it in a 
> respectable programming language over a respectable number of samples.


MingW C++ on Win32/64 seems useful.  I use Borland's free command line tools sometimes mostly because I grew up with Borland's Turbo Pascal and Turbo C++ as a kid (and I kind of miss the IDE editor's blue screen).  Otherwise, on Linux, sudo apt-get install g++ would get you pretty much everything you need, right?

 
> It generated a slightly conservative estimate for p_b when I tried it, 
> but I'd need to run a lot more trials to say anything persuasive.
> 
> -- 
> Bill Sloman, Sydney


Cheers,

Michael

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


#408902

Frombill.sloman@ieee.org
Date2016-04-24 00:06 -0700
Message-ID<64722614-2c72-4f36-924b-0e5c0add30f6@googlegroups.com>
In reply to#408884
On Sunday, April 24, 2016 at 2:26:10 PM UTC+10, mrda...@gmail.com wrote:
> On Saturday, April 23, 2016 at 8:31:18 PM UTC-7, Bill Sloman wrote:
> > On 22/04/2016 4:03 AM, mrdarrett@gmail.com wrote:
> > > On Wednesday, April 20, 2016 at 11:36:41 PM UTC-7, bill....@ieee.org wrote:
> > >> On Thursday, April 21, 2016 at 7:04:48 AM UTC+10, mrda...@gmail.com wrote:
> > >>> On Tuesday, April 19, 2016 at 2:53:19 PM UTC-7, Jamie M wrote:
> > 
> > <snip>
> > 
> > >>> Good luck!
> > >>
> > >> He'd need it - on present evidence what he actually needs is sci.remedial.math
> > >>
> > >> In fact he's explicitly rejected posting anywhere where anybody might be interested in what he posts - he wants to work it out for himself, which would probably need a brain transplant, or at least an implant, granting that nature seems to have drastically short-changed him in that department.
> > >
> > > Oh, I don't know.  His post inspired me to look at the Sieve of Eratosthenes.  Quite fun.  There's a sample sieve code with the FreeBasic compiler.  After some modification (it only finds the first million primes) it took my computer just 7.5 seconds to find the first 25 million primes.  I'd forgotten how much fun such things could be.  Of course, to find these primes, about 2 gigabytes of RAM for array space are needed... I'm sure the algorithm could be refined further by avoiding storage of multiples of two...
> > >
> > > Carry on!
> > 
> > I've known about the Sieve of Eratosthenes for many years now. In fact I 
> > was inspired to try to work out a probablistic estimator of it's success 
> > a couple of months ago.
> > 
> > The simplest predictor is that the chance of an individual application 
> > of the sieve will find a non-prime in a collection of n numbers is
> > 
> > 1/(1-1/p) where p is the prime being tested for.
> > 
> > This doesn't work, because the population of numbers being sieved is 
> > progressively depleted of smaller primes as the test progresses. To 
> > improve it, you have to know (or guess) the number of primes - p_a - 
> > below the first number in the sample being tested - think Legendre 
> > Conjecture - and guess the number of primes in the sample being tested p_b.
> 
> 
> I'm trying to understand your p_a and p_b.
> 
> From this list,
> http://www.rsok.com/~jrm/first100primes.html
> 
> Considering the first primes less than 100, would p_b be 100?  And p_a would be 25?

Consider testing the Legendre Hypothesis that there's always at least one prime between n^2 and (n+1)^2.

You only need to test for primes equal to or less than to n+2.

If n is 100 there are only 26 prime less that 102, which is p_a in this context.

p_b is the number of primes between 10,000 and 10,201 (which is what you are trying to find out). It's 23. The roughest estimate is 202/ln(10100) which is 21.8.

> > As you work your way through p(a) the chance of finding a number 
> > divisible by a known prime goes up at the "k"th step by
> > 
> > (p_a + p_b)/(p_a + p_b - k)
> > 
> > It seemed to work fairly well when I tried it out in Excel, but I 
> > couldn't be bothered getting into my Linux partition and testing it in a 
> > respectable programming language over a respectable number of samples. 
> 
> MingW C++ on Win32/64 seems useful.  I use Borland's free command line tools sometimes mostly because I grew up with Borland's Turbo Pascal and Turbo C++ as a kid (and I kind of miss the IDE editor's blue screen).  Otherwise, on Linux, sudo apt-get install g++ would get you pretty much everything you need, right?

I'd be more likely to install a Fortran compiler - I got quite good with that in the late 1960's.
  
-- 
Bill Sloman, Sydney

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


#408928

FromJasen Betts <jasen@xnet.co.nz>
Date2016-04-24 12:05 +0000
Message-ID<nficq7$gkm$2@gonzo.alcatraz>
In reply to#408902
On 2016-04-24, bill.sloman@ieee.org <bill.sloman@ieee.org> wrote:
> On Sunday, April 24, 2016 at 2:26:10 PM UTC+10, mrda...@gmail.com wrote:
>> On Saturday, April 23, 2016 at 8:31:18 PM UTC-7, Bill Sloman wrote:
>> > On 22/04/2016 4:03 AM, mrdarrett@gmail.com wrote:
>> > > On Wednesday, April 20, 2016 at 11:36:41 PM UTC-7, bill....@ieee.org wrote:
>> > >> On Thursday, April 21, 2016 at 7:04:48 AM UTC+10, mrda...@gmail.com wrote:
>> > >>> On Tuesday, April 19, 2016 at 2:53:19 PM UTC-7, Jamie M wrote:
>> > 
>> > <snip>
>> > 
>> > >>> Good luck!
>> > >>
>> > >> He'd need it - on present evidence what he actually needs is sci.remedial.math
>> > >>
>> > >> In fact he's explicitly rejected posting anywhere where anybody might be interested in what he posts - he wants to work it out for himself, which would probably need a brain transplant, or at least an implant, granting that nature seems to have drastically short-changed him in that department.
>> > >
>> > > Oh, I don't know.  His post inspired me to look at the Sieve of Eratosthenes.  Quite fun.  There's a sample sieve code with the FreeBasic compiler.  After some modification (it only finds the first million primes) it took my computer just 7.5 seconds to find the first 25 million primes.  I'd forgotten how much fun such things could be.  Of course, to find these primes, about 2 gigabytes of RAM for array space are needed... I'm sure the algorithm could be refined further by avoiding storage of multiples of two...
>> > >
>> > > Carry on!
>> > 
>> > I've known about the Sieve of Eratosthenes for many years now. In fact I 
>> > was inspired to try to work out a probablistic estimator of it's success 
>> > a couple of months ago.
>> > 
>> > The simplest predictor is that the chance of an individual application 
>> > of the sieve will find a non-prime in a collection of n numbers is
>> > 
>> > 1/(1-1/p) where p is the prime being tested for.
>> > 
>> > This doesn't work, because the population of numbers being sieved is 
>> > progressively depleted of smaller primes as the test progresses. To 
>> > improve it, you have to know (or guess) the number of primes - p_a - 
>> > below the first number in the sample being tested - think Legendre 
>> > Conjecture - and guess the number of primes in the sample being tested p_b.
>> 
>> 
>> I'm trying to understand your p_a and p_b.
>> 
>> From this list,
>> http://www.rsok.com/~jrm/first100primes.html
>> 
>> Considering the first primes less than 100, would p_b be 100?  And p_a would be 25?
>
> Consider testing the Legendre Hypothesis that there's always at least one prime between n^2 and (n+1)^2.
>
> You only need to test for primes equal to or less than to n+2.
>
> If n is 100 there are only 26 prime less that 102, which is p_a in this context.
>
> p_b is the number of primes between 10,000 and 10,201 (which is what you are trying to find out). It's 23. The roughest estimate is 202/ln(10100) which is 21.8.
>
>> > As you work your way through p(a) the chance of finding a number 
>> > divisible by a known prime goes up at the "k"th step by
>> > 
>> > (p_a + p_b)/(p_a + p_b - k)
>> > 
>> > It seemed to work fairly well when I tried it out in Excel, but I 
>> > couldn't be bothered getting into my Linux partition and testing it in a 
>> > respectable programming language over a respectable number of samples. 
>> 
>> MingW C++ on Win32/64 seems useful.  I use Borland's free command line tools sometimes mostly because I grew up with Borland's Turbo Pascal and Turbo C++ as a kid (and I kind of miss the IDE editor's blue screen).  Otherwise, on Linux, sudo apt-get install g++ would get you pretty much everything you need, right?
>
> I'd be more likely to install a Fortran compiler - I got quite good with that in the late 1960's.
>   

MinGW is GCC, it'll do fortran too, 

-- 
  \_(ツ)_



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


#408384

Frombloggs.fredbloggs.fred@gmail.com
Date2016-04-20 18:18 -0700
Message-ID<ec4fbad4-e694-4d16-b129-887a8695778b@googlegroups.com>
In reply to#408249
On Tuesday, April 19, 2016 at 5:53:19 PM UTC-4, Jamie M wrote:
> Hi,
> 
> In a range of n numbers using a set of π(n)+1 numbers called Y, select
> the set of numbers Y to maximize the count of pairs of numbers x and y
> from the set Y where x and y are both prime, and where y is larger than
> x, and with (y-x) / 2 equal to a number that exists in the set Y.
> 
> 
> example1:
> 
> n=1 to 10
> π(n)+1 = 5
> count of pairs in Y=6
> Y=1,2,3,5,7
> 
> 
> 
> example2:
> 
> n=1 to 100
> π(n)+1=26
> count of pairs in Y=99
> Y=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
> 
> 
> cheers,
> Jamie

Of what practical significance is this?

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


#408412

FromJamie M <jmorken@shaw.ca>
Date2016-04-21 00:35 -0700
Message-ID<nf9vs9$1lpr$1@gioia.aioe.org>
In reply to#408384
On 4/20/2016 6:18 PM, bloggs.fredbloggs.fred@gmail.com wrote:
> On Tuesday, April 19, 2016 at 5:53:19 PM UTC-4, Jamie M wrote:
>> Hi,
>>
>> In a range of n numbers using a set of π(n)+1 numbers called Y, select
>> the set of numbers Y to maximize the count of pairs of numbers x and y
>> from the set Y where x and y are both prime, and where y is larger than
>> x, and with (y-x) / 2 equal to a number that exists in the set Y.
>>
>>
>> example1:
>>
>> n=1 to 10
>> π(n)+1 = 5
>> count of pairs in Y=6
>> Y=1,2,3,5,7
>>
>>
>>
>> example2:
>>
>> n=1 to 100
>> π(n)+1=26
>> count of pairs in Y=99
>> Y=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
>>
>>
>> cheers,
>> Jamie
>
> Of what practical significance is this?
>


Hi,

It is of no practical significance, I'm just trying to learn about math,
and writing my step by step work down.  With my recent work on
jerblets, I was seeing a possible way to make an algorithm to generate
the prime numbers and also a new algorithm for the prime counting
function, but I am quite certain that I will not be able to do that as
I recently noticed that many sequences besides the primes have many more
jerblets than the primes do, as when I restricted the search to just
even OR odd numbers, there are many examples of both even and odd
sequences which have more jerblets than the sequence of primes.

It is possible that there is still a chance for larger sequences
the primes can have more jerblets but I am skeptical now.

If the primes had more jerblets, that would mean that there is
something special about the configuration of the primes basically,
which the jerblet algorithm could describe (doesn't seem to be so
now though!)

cheers,
Jamie



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


#408413

Frombill.sloman@ieee.org
Date2016-04-21 00:44 -0700
Message-ID<a847af35-e459-4801-92eb-d3ff4fcf43a9@googlegroups.com>
In reply to#408412
On Thursday, April 21, 2016 at 5:35:44 PM UTC+10, Jamie M wrote:
> On 4/20/2016 6:18 PM, bloggs.fredbloggs.fred@gmail.com wrote:
> > On Tuesday, April 19, 2016 at 5:53:19 PM UTC-4, Jamie M wrote:

<snip>

> > Of what practical significance is this?
> 
> It is of no practical significance, I'm just trying to learn about math,
> and writing my step by step work down. 

The question is why you feel the need to show your work in progress here.

This is sci.electronics.design, not remedial.math.homework

<snipped more tedious self-revelation>

-- 
Bill Sloman, Sydney

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

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


csiph-web