![]() |
|
|
#34 | |
|
Jun 2005
USA, IL
193 Posts |
Quote:
http://www.mersennewiki.org/index.php/Residue The 'shift' is just part of the FFT (fast fourier transform) used in the test. It is expected to be different. The below link doesn't discuss the shift, but might give you a good starting point if you want to get more detail on the subject. http://www.mersennewiki.org/index.ph...rier_Transform The result 'type' is what each test tells us. If someone performs partial factoring, "NF" tells us there was no factor for the factoring range. If an LL test indicates the candidate is composite, "C" is the result type. The 'result' column just has some extra details about the test type, like the residue for an LL test, or the 'bit-range' that someone checked for factors. Last fiddled with by potonono on 2017-12-24 at 17:24 |
|
|
|
|
|
|
#35 | |
|
"Evan"
Dec 2017
Houston, TX
1E16 Posts |
Quote:
I was thinking that Maple is using a code where it checks all integers 2 to n-1 to see if they factor into n but somehow stores each check in the RAM for efficiency so it doesn't have to compute factors it already computed but rather it just checks against previous calculations... I could be making no sense here but I'm learning... |
|
|
|
|
|
|
#36 | |
|
"Evan"
Dec 2017
Houston, TX
2·3·5 Posts |
Quote:
thank you for the links. |
|
|
|
|
|
|
#37 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
9,767 Posts |
Quote:
A graduate student came in complaining that his program wasn't working on the IBM 360. My friend looked at the code, and carefully and gently explained to him that he was trying to allocate a four dimensional complex number array which would consume more memory than existed on earth. "Well", said the graduate student, "when are you going to upgrade your computer so it can run my program? Believe it or not, this is a true story. |
|
|
|
|
|
|
#38 |
|
"Forget I exist"
Jul 2009
Dumbassville
100000110000002 Posts |
Testing a number for factors is much smaller you need only check up to sqrt n. This is because if n=pq with p and q both greater than sqrt you get n> n a contradiction.
Last fiddled with by science_man_88 on 2017-12-24 at 17:41 |
|
|
|
|
|
#39 | |
|
Banned
"Luigi"
Aug 2002
Team Italia
2×3×11×73 Posts |
Quote:
First things first. You don't have to test all integers from 2 to n-1 to see if they factor into n: you may well use only prime numbers (hence the explosion in RAM usage) up to the square root of n. Can you see why? Because every factor above the square root of n gives a second (co)factor that is less than the square root of n: if you start from 2 and go up the ladder of primes, then you have already checked such cofactor. Hence the reason to stop at the square root of n. Second heuristic. Division operations are quite slow on modern CPUs, referred to (integer) multiplication, so we can use modular arithmetic instead. As you may remember the modulus of an operation is the remainder from an integer division, i.e. 5 % 2 = 1. Using modulus is quite efficient and lets you test numbers up to 4,200,000,000 using only a few modulo operations with primes in the very low range. Interlude. I guess Maple uses a symbolic engine to (try to) solve primality problems. Consider that the isprime() function used on Maple does not perform a primality test, it only performs a probabilistic test. So I hope you don't use that function to test your number... Last fiddled with by ET_ on 2017-12-24 at 17:53 Reason: Geez, too slow again :-) |
|
|
|
|
|
|
#40 | |
|
"Rashid Naimi"
Oct 2015
Remote to Here/There
2,063 Posts |
Quote:
Primo uses parallel computing for proving general form primes. But it is limited in threads by design, which makes it of limited use. It's a shame that the concept is not utilised as distributed computing. Last fiddled with by a1call on 2017-12-24 at 18:11 |
|
|
|
|
|
|
#41 |
|
"Rashid Naimi"
Oct 2015
Remote to Here/There
40178 Posts |
Regarding primo, it is not the top SERP in Google for its name:
http://www.ellipsa.eu/public/primo/primo.html#FAQ Paul Underwood can correct me if I am wrong but going by memory it has a limit on 64 threads. |
|
|
|
|
|
#42 | |
|
Einyen
Dec 2003
Denmark
2·1,579 Posts |
Quote:
1,000,000,000 / log10(2) = 3321928094,887 The smallest prime above this is: 3,321,928,097 but there is already known factors of 23,321,928,097 - 1. The lowest prime exponent without known factors is: 3,321,928,171: http://home.earthlink.net/~elevensmooth/Billion.html |
|
|
|
|
|
|
#43 | |
|
"Evan"
Dec 2017
Houston, TX
2·3·5 Posts |
Quote:
• The isprime command is a probabilistic primality testing routine. (See prime number.) • It returns false if n is shown to be composite within one strong pseudo-primality test and one Lucas test. It returns true otherwise. • If isprime returns true, n is very probably prime - see References section. No counterexample is known and it has been conjectured that such a counter example must be hundreds of digits long. I suppose if a number I test comes back "true" I will have to seek help in performing a deterministic probability test... the good news is that usually it is quickly able to kick back a "false" output... right now the number I am testing has been "evaluating" for a few days now.. I know thats nothing considering with my hardware it could take a few months... with all of the numbers I have tested with my method up to... 1,000,000,000,000 I have been able to find a prime with this method... no I have not tested ALL of the numbers up to this and I know that just because it holds true for what I have shown that does not mean it holds true for ALL cases... I still think it will be pretty cool to get a return of "true" on a 100,000,000+ digit number even if it is probabilistic.. anyone care to help out if that happens??? we can split the prize money
|
|
|
|
|
|
|
#44 | |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
11000010100002 Posts |
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to enter password in prime.txt? | Unregistered | Information & Answers | 3 | 2011-04-28 02:02 |
| Less GHz days for larger exponents in TF? | Bdot | Information & Answers | 12 | 2010-11-21 22:33 |
| Enter key doesn't work at weird times. | jasong | Linux | 5 | 2007-08-25 20:31 |
| How 'bout an ecm server for numbers about to enter Prime95 first-pass? | jasong | GMP-ECM | 2 | 2007-03-16 16:16 |
| 2003 Nov 03: P-1: a set of 16 larger exponents | GP2 | Completed Missions | 2 | 2003-11-09 01:21 |