mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2013-02-05, 01:50   #56
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

19×613 Posts
Default

The 2 sort-predicates need to occur at top of their containing .c file, otherwise the compiler needs separate declarations-in-a-header.

#define HERE __LINE__, __FILE__
ewmayer is offline   Reply With Quote
Old 2013-02-05, 04:19   #57
R. Gerbicz
 
R. Gerbicz's Avatar
 
"Robert Gerbicz"
Oct 2005
Hungary

2×743 Posts
Default

[k*10^6-40000,k*10^6+40000] (with integer k) is true for Mersenne exponents with index from 36 to 42 the only exception is p=13,466,917. This is also interesting.
R. Gerbicz is offline   Reply With Quote
Old 2013-02-05, 18:05   #58
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

19·613 Posts
Default M(57885161)

B -smoothness: 57885161 is 69 of 1140, percentile = 94.04
SL[sup]2[/sup]-smoothness: 57885161 is 135 of 1140, percentile = 88.25
Attached Files
File Type: gz smooth_57885161.txt.gz (20.2 KB, 98 views)
ewmayer is offline   Reply With Quote
Old 2013-02-05, 18:19   #59
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

19×613 Posts
Default

Summary table:
Code:
p			B -smooth	L2-smooth
--------		---------	---------
110503			47.31		56.85
132049			78.57		93.15
216091			99.88		97.62
756839			28.72		17.03
859433			88.34		78.98
1257787			20.32		26.56
1398269			 5.42		 5.42
2976221			41.08		49.67
3021377			57.65		86.36
6972593			91.83		87.35
13466917		62.51		71.26
20996011		99.75		99.16
24036583		 8.03		 8.03
25964951		73.05		77.42
30402457		98.74		94.44
32582657		87.41		99.32
37156667		55.44		39.93
42643801		97.02		98.64
43112609		54.13		85.28
57885161		94.04		88.25

Average:		64.46		68.04
So, if you had a family with 20 children of various ages - "you may be eligible for a papal certificate of fecundity and outstanding contribution to global overpopulation! See details below on how to apply" - and of heights of the above percentiles with respect to their same-age cohort, would you be justified in concluding that this family taken as a whole has children taller than average, in a statistically significant fashion?

Also note, 6 of 20 for each smoothness measure in the > 90%ile range, and half of those are 99%ers.
ewmayer is offline   Reply With Quote
Old 2013-02-05, 18:22   #60
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

I have to point out we haven't even examined what "average" is yet. (That is, what's the distribution for all the 1000s of primes in a range around an MP expo? Is it a bell curve...?)
Dubslow is offline   Reply With Quote
Old 2013-02-05, 18:28   #61
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

19×613 Posts
Default

Quote:
Originally Posted by Dubslow View Post
I have to point out we haven't even examined what "average" is yet. (That is, what's the distribution for all the 1000s of primes in a range around an MP expo? Is it a bell curve...?)
That would be an excellent use of the standalone code you pieced together from the files I sent you, plus some plotting magic.
ewmayer is offline   Reply With Quote
Old 2013-02-05, 18:35   #62
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default

Quote:
Originally Posted by ewmayer View Post
That would be an excellent use of the standalone code you pieced together from the files I sent you, plus some plotting magic.
Except for the problem of qsort apparently crashing for no reason at all

My plan is to reimplement it in Python, which will be a lot slower but also very little code and effort on my part. Unfortunately I've distracted myself all morning reading about hacking python
Dubslow is offline   Reply With Quote
Old 2013-02-05, 18:42   #63
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

2×47×101 Posts
Default

- get a sample (set of numbers)
- run t-tests
- apply FWER correction (Holm-Bonferroni, Benjamini-Hochberg, take your pick)
- ?????
- PROFIT!
Batalov is offline   Reply With Quote
Old 2013-02-05, 19:36   #64
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

19×613 Posts
Default

Quote:
Originally Posted by Dubslow View Post
Except for the problem of qsort apparently crashing for no reason at all
Why don't you post the current codebase here, along with your platform/build-setup, for others with similar systems to try.

Since it works fine for me (built using gcc 4.2 under Mac OS), I can't be of much help here.
ewmayer is offline   Reply With Quote
Old 2013-02-05, 19:40   #65
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

11100001101012 Posts
Default

Quote:
Originally Posted by ewmayer View Post
Why don't you post the current codebase here, along with your platform/build-setup, for others with similar systems to try.

Since it works fine for me (built using gcc 4.2 under Mac OS), I can't be of much help here.
Well since my "codebase" is meant to be independent of your local setup, you still still try it in its own folder.

To anyone willing to try it: it should compile out of the box with `gcc -Wall mprime_exp_smooth. -o mpsmooth -lm`, and try running `./mpsmooth`. For me it crashes in the sort before even calling any comparison functions (which are the only code I added).
Attached Files
File Type: zip mpsmooth-code.zip (52.1 KB, 102 views)
Dubslow is offline   Reply With Quote
Old 2013-02-05, 22:11   #66
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Wow, my Python is slow it takes 5-10 seconds to process M110503. I'll edit in some results soon.

Edit: Well, I made at least one stupid, but that doesn't appear to have solved the problem. Still getting crashes with a fixed compare.
Attached Files
File Type: zip mpsmooth-code.zip (52.3 KB, 99 views)

Last fiddled with by Dubslow on 2013-02-05 at 22:42
Dubslow is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mersenne Prime Exponent Distribution PawnProver44 Miscellaneous Math 26 2016-03-18 08:48
PC shuts down randomly. Need Help please mdq Hardware 38 2009-05-23 09:35
Fun with the new Mersenne prime exponent ewmayer Lounge 4 2006-09-06 20:57
Distributed Factoring and prime testing algorithms bunbun Software 6 2006-03-27 17:14
Mersenne composites (with prime exponent) Dougy Math 4 2005-03-11 12:14

All times are UTC. The time now is 15:51.


Mon Aug 2 15:51:11 UTC 2021 up 10 days, 10:20, 0 users, load averages: 1.86, 2.12, 2.25

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.