mersenneforum.org  

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

Reply
 
Thread Tools
Old 2003-07-22, 18:43   #1
Annunaki
 
Jul 2003

111112 Posts
Default about Lucas-Lehmer test and Prime 95

My question is about primarity test of M numbers..
I am runing a primarity test of M16328749 and about every 20 minutes or so i got about 0.06% of total job done.. However it calls some confusion in my mind.. Does anybody knows if the test is stopped if it suddenly finds some facor of the number.. or it is continiued befor the number is compleetly factored.. To my mind if would be logical if the test stopped to run after first factor is found, but how can the test estimitate then how much percent of total work is done if it is not known when any factor may or may not appear..
Does the % mean the job done in % in case it really is the prime..
And then does it means that if the i see more than 90% of job finished i should allready start to get nervous:)?
Annunaki is offline   Reply With Quote
Old 2003-07-22, 19:04   #2
eepiccolo
 
eepiccolo's Avatar
 
Dec 2002
Frederick County, MD

2×5×37 Posts
Default

The Lucas-Lehmer test doesn't factor a number, it just test for primality. Trial Factoring is performed on a number before The LL test is performed, and if no factor is found, the the LL test will start.

An LL test always must complete to 100% to determine primality. Only then can the program determine if the number is prime or not, which it does by looking at the LL residue.
eepiccolo is offline   Reply With Quote
Old 2003-07-22, 19:52   #3
Annunaki
 
Jul 2003

31 Posts
Default

strange.. if trial factorign found no factors then this nuumber should already prime.. or trial factoring only does half job?
and i thought primarity test is still searching for factors - if no factors found then nuber is prime..
But then could anyone explain how works this test..
Annunaki is offline   Reply With Quote
Old 2003-07-22, 20:08   #4
eepiccolo
 
eepiccolo's Avatar
 
Dec 2002
Frederick County, MD

5628 Posts
Default

Trial factoring only looks for small factors. If no factors are found, then the program goes on to the LL test, which only proves or disproves primality; it tells nothing about the factors.

Here is a link to the math explaination on the mersenne.org site:
http://www.mersenne.org/math.htm
eepiccolo is offline   Reply With Quote
Old 2003-07-22, 20:10   #5
trif
 
trif's Avatar
 
Aug 2002

20210 Posts
Default

Quote:
Originally Posted by Annunaki
strange.. if trial factorign found no factors then this nuumber should already prime.. or trial factoring only does half job?
and i thought primarity test is still searching for factors - if no factors found then nuber is prime..
But then could anyone explain how works this test..
Trial factoring doesn't factor all the way, but only to a shallow bit depth. It takes out the "easy" ones in order to avoid doing an LL test on an exponent where a factor can be found with relatively little work. Completely trial factoring exponents of the size we are working on now would be impossible.
trif is offline   Reply With Quote
Old 2003-07-23, 09:25   #6
Annunaki
 
Jul 2003

31 Posts
Default

yes that is what seemed so strange.. because if trial factoring is just dividing with all primes in a row we should wait some hundreds of years just to hope to see some factor:)
Annunaki is offline   Reply With Quote
Old 2003-07-23, 12:37   #7
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29×41 Posts
Default

Quote:
Originally Posted by Annunaki
yes that is what seemed so strange.. because if trial factoring is just dividing with all primes in a row we should wait some hundreds of years just to hope to see some factor:)
It would take much longer than a couple of hundred years to factor current numbers to the square root. The numbers we are testing have millions of digits. Trail factoring of numbers of 40 digits is almost impossible and very inefficient.
smh is offline   Reply With Quote
Old 2003-07-23, 13:09   #8
Annunaki
 
Jul 2003

3110 Posts
Default

tes have heard this allready.. just thought that some hundreds of years could be enough to see some factor.. if that number is prime then.. i feareven to guess how much time it would ask.. Of course all is dependent how and on what you run the program.. It is almost imposible only to our computers, but i think it is posible to human..
Annunaki is offline   Reply With Quote
Old 2003-07-28, 02:49   #9
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

1E0C16 Posts
Default

A while ago, while writing a posting illustrate the magnitudes of the numbers we work with, I looked up current estimates of the numbers of particles in the known universe, size of the known universe, and related stuff.

Without giving links or specific citations, here is a rough calculation to demonstrate the impossibility of trial-factoring to the square root of the size of Mersenne number with which GIMPS is now working:

The known universe could hold (far) less than 10^200 neutrons (the most compact elementary particle) if it were packed full, with no empty space. (In reality, the universe is more than 99.99% empty.)

The "Planck time", which is smaller than any time in which any conceivable useful computation could take place, is greater than 10^-44 second. Let's make that 10^-100 second, just so there's no quibbling. So, no computation could be performed in less than 10^-100 second.

Suppose the known universe were packed full of neutrons, and suppose each neutron were a computer capable of performing one trial-factoring division in 10^-100 second. So, altogether the universe could perform 10^300 trial-factoring divisions per second.

Now, 10^300 is less than 2^1200, so all the computers in the entire known universe can perform no more than 2^1200 trial-factoring divisions per second.

The estimated age of the known universe is 13 billion years. There are about 31 million seconds in a year. So the universe is about 400 million billion seconds old. That's 4 * 10^17 seconds, which is (much) less than 2^100 seconds.

So all the computers in the universe, operating at the fastest possible speed for longer than the age of the universe, could perform no more than 2^1300 trial-factoring divisions.

What is the size of a number than has 2^1300 primes below its square root?

Let N be the number, and Q be its square root.

Pi(Q) = 2^1300

Pi(Q) = approx Q / ln Q

{Edit: Here I'm making a WAG ("educated guess":) that Q is about 2^1400 --} The natural log of 2^1400 would be less than 1400 (because e^1400 > 2^1400).

So if Q were 2^1400, then Pi(Q) would be greater than (2^1400)/1400 > 2^1380.

So, we know Q < 2^1400, and so N < 2^2800.

In other words, if the entire known universe were packed full of neutrons and each neutron were a computer operating at maximum possible speed, and all the little computers ran for the entire age (so far) of the universe, it could completely trial-factor a number no larger than 2^2800.

WAIT! We left out the optimizations -- like each factor has to be 2kp+1 and +-1 mod 8, and so on.

Suppose our optimizations allow us to skip 999,999,999,999 out of every 1,000,000,000,000 primes below the square root of the number we're trying to factor. That means we can TF a trillion (~2^40) times as many potential factors. So we want Pi(Q) = 2^1300 * 2^40 = 2^1340 instead of 2^1300.

Hmmm ... looking back, we find that "So if Q were 2^1400, then Pi(Q) would be greater than (2^1400)/1400 > 2^1380" still is valid. We don't have to change our previous answer -- The entire universe could TF a number no larger than 2^2800. (Using our current trial-factoring methods and optimizations, that is.)

{EDIT: Let me restate that conclusion so that it is clearer when quoted out of context -- Even if the entire known universe were one solid computer operating at maximum speed for the entire time since the Big Bang, it could not yet have trial-factored a number larger than 2^2800 all the way to its square root.}

Let's see ... how big are the numbers GIMPS is working on now? Current PrimeNet trial-factoring assignments are greater than M21000000 = 2^21000000 - 1 which is far, far larger than 2^2800.
cheesehead is offline   Reply With Quote
Old 2003-07-28, 03:34   #10
ColdFury
 
ColdFury's Avatar
 
Aug 2002

26×5 Posts
Default

Quote:
it could completely trial-factor a number no larger than 2^2800.
And the sad thing is, this is more or less the method that the Neo Project is using to try to crack the X-Box's 2048 bit public key.
ColdFury is offline   Reply With Quote
Old 2003-07-28, 07:09   #11
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

26×33×5 Posts
Default

I've always wondered how the bit-depth of a RSA key affects its "crackability"...

For example, I use a 2048-bit key for my sshd session... If I'm thinking about this right that key should be impossible to crack, right?

I mean, RC5 took forever to crack 64 bits, right?

Or am I looking at this wrong?
Xyzzy is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modifying the Lucas Lehmer Primality Test into a fast test of nothing Trilo Miscellaneous Math 25 2018-03-11 23:20
Lucas-Lehmer test Mathsgirl Information & Answers 23 2014-12-10 16:25
Question on Lucas Lehmer variant (probably a faster prime test) MrRepunit Math 9 2012-05-10 03:50
Lucas-Lehmer test proof etc. science_man_88 Miscellaneous Math 48 2010-07-14 23:33
Lucas-Lehmer Test storm5510 Math 22 2009-09-24 22:32

All times are UTC. The time now is 22:53.


Fri Jun 2 22:53:55 UTC 2023 up 288 days, 20:22, 0 users, load averages: 1.44, 1.08, 1.01

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, 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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔