mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2010-07-22, 13:35   #122
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

should have the 400 million test done in 12-13 minutes if it worked linearly
science_man_88 is offline   Reply With Quote
Old 2010-07-22, 13:41   #123
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

10111010110112 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
should have the 400 million test done in 12-13 minutes if it worked linearly
It will take slightly longer than linear. The expected number of tests rises slowly, and the cost of each test is higher as the numbers get bigger.
CRGreathouse is offline   Reply With Quote
Old 2010-07-22, 13:43   #124
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

100000110000002 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
It will take slightly longer than linear. The expected number of tests rises slowly, and the cost of each test is higher as the numbers get bigger.
means the next test may have to be done on a faster computer as linearly it should be over 10 hours on my machine(I only have 11 until i usually try to go to bed). oh and then the next test should take over 100 hours or over 4 days.

*** last result computed in 1h, 2mn, 56,844 ms.

Last fiddled with by science_man_88 on 2010-07-22 at 13:58
science_man_88 is offline   Reply With Quote
Old 2010-07-22, 14:55   #125
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

does your code break if it finds one before running out ? if not wouldn't that likely speed it up ? it only needs to find one not all of them.
science_man_88 is offline   Reply With Quote
Old 2010-07-22, 15:16   #126
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Quote:
does your code break if it finds one before running out ? if not wouldn't that likely speed it up ? it only needs to find one not all of them.
If it happens to find one, just press Ctrl + C after it is found.
3.14159 is offline   Reply With Quote
Old 2010-07-22, 15:20   #127
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
If it happens to find one, just press Ctrl + C after it is found.
so i need it showing again ? I changed it to not showing also I think it only prints once it's done the gone through the loop.
science_man_88 is offline   Reply With Quote
Old 2010-07-22, 15:25   #128
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

135338 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
does your code break if it finds one before running out ?
If it finds one what, a Goldbach counterexample? No, the code doesn't break -- although you won't find one, all small numbers have already been tested.
CRGreathouse is offline   Reply With Quote
Old 2010-07-22, 15:28   #129
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
If it finds one what, a Goldbach counterexample? No, the code doesn't break -- although you won't find one, all small numbers have already been tested.
no if it finds a prime pair so it only has to find one not 1000 lol
science_man_88 is offline   Reply With Quote
Old 2010-07-22, 15:30   #130
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
no if it finds a prime pair so it only has to find one not 1000 lol
Oh, certainly. The code would take vastly longer otherwise, and it would need a large primelimit.
CRGreathouse is offline   Reply With Quote
Old 2010-07-22, 15:32   #131
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

is there a way we could speed it up as data is rarely random according to a ASM book I read into lol.
science_man_88 is offline   Reply With Quote
Old 2010-07-22, 15:35   #132
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
is there a way we could speed it up as data is rarely random according to a ASM book I read into lol.
Did you have something particular in mind?

You could get a small speedup by installing (possibly as a second OS rather than replacing your primary) some form of Linux, installing gp2c, running the script through gp2c, and hand-editing the C code to type-specialize, as well as to replace general functions with custom specific functions. But for this problem, most of the time is just spent proving primality, so there's no a whole lot to be done.
CRGreathouse is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Goldbach Conjecture MattcAnderson MattcAnderson 4 2021-04-04 19:21
Factorial and Goldbach conjecture. MisterBitcoin MisterBitcoin 17 2018-01-29 00:50
Goldbach's weak conjecture MattcAnderson MattcAnderson 19 2017-03-21 18:17
Goldbach's conjecture Citrix Puzzles 3 2005-09-09 13:58

All times are UTC. The time now is 04:47.


Fri Aug 6 04:47:10 UTC 2021 up 13 days, 23:16, 1 user, load averages: 2.62, 2.40, 3.11

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.