![]() |
|
|
#584 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
okay so I have to program in
(((t/log(N))^n)*exp(t/log(N)))/n! that shouldn't be too hard. |
|
|
|
|
|
#585 |
|
"Forget I exist"
Jul 2009
Dumbassville
100000110000002 Posts |
Code:
poisson2(N,t,n) = (((t/log(N))^n)*exp(t/log(N)))/n! Last fiddled with by science_man_88 on 2010-09-22 at 13:09 |
|
|
|
|
|
#586 |
|
Aug 2006
3×1,993 Posts |
I think something's wrong: it gave a 109% chance for 20 numbers near a googol to have 0 primes.
|
|
|
|
|
|
#587 |
|
"Forget I exist"
Jul 2009
Dumbassville
203008 Posts |
I found it lol I forgot the - sign
|
|
|
|
|
|
#588 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Code:
poisson2(N,t,n) = (((t/log(N))^n)*exp(-(t/log(N))))/n! |
|
|
|
|
|
#589 |
|
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
Code:
(10:21) gp > poisson2(10^100,0,20) %89 = 0 |
|
|
|
|
|
#590 | |
|
Aug 2006
3·1,993 Posts |
Quote:
For my question, I get Code:
poisson2(1e100,20,0) %1 = 0.9168064512151768221426797071 |
|
|
|
|
|
|
#591 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
sorry I'm getting confused lol.
|
|
|
|
|
|
#592 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
if I did the math correct that means 230 numbers near a googol seems to give the best chance of exactly 1 being prime at 36.7879 % I think
|
|
|
|
|
|
#593 |
|
Aug 2006
3·1,993 Posts |
No problem.
So first, a warning: choosing 20 numbers isn't really a good example, since 20 is "small" and so the binomial distribution would be more appropriate than the Poisson distribution. (Conceivably, a program could switch between these depending on input parameters; for now let's keep things simple and leave it using only Poisson.) Moving on: a number that is known to have no prime factors below L is approximately Code:
Euler Last fiddled with by CRGreathouse on 2010-09-22 at 14:48 |
|
|
|
|
|
#594 |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
10000101010112 Posts |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prime posting thread, part 2. (With a catch.) | 3.14159 | Miscellaneous Math | 55 | 2010-11-19 23:55 |
| Tiny range request .... 555.1M | petrw1 | LMH > 100M | 1 | 2010-07-13 15:35 |
| Other primes thread | nuggetprime | No Prime Left Behind | 32 | 2009-10-21 21:48 |
| Error: tiny factoring failed | 10metreh | Msieve | 26 | 2009-03-08 23:28 |
| Tiny error on nfsnet pages. | antiroach | NFSNET Discussion | 1 | 2003-07-08 00:27 |