mersenneforum.org  

Go Back   mersenneforum.org > New To GIMPS? Start Here! > Information & Answers

Reply
 
Thread Tools
Old 2012-01-25, 21:31   #1
JonathanM
 
Jan 2012

1 Posts
Default Fastest software for Mersenne primality test?

What is the fastest software for checking if a Mersenne number is prime? (has to be free/non-binding, preferably for Windows 64 bit)

Also, approximately how long does checking a 1 billion digit Mersenne prime take?
JonathanM is offline   Reply With Quote
Old 2012-01-25, 21:48   #2
firejuggler
 
firejuggler's Avatar
 
"Vincent"
Apr 2010
Over the rainbow

22·7·103 Posts
Default

llravx and aproximately 1 year for current harware.

Last fiddled with by firejuggler on 2012-01-25 at 21:49
firejuggler is offline   Reply With Quote
Old 2012-01-25, 22:15   #3
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

22·3·641 Posts
Default

Quote:
Originally Posted by firejuggler View Post
llravx
Oh? How does llravx run faster than prime95 when testing a Mersenne number?
cheesehead is offline   Reply With Quote
Old 2012-01-25, 22:24   #4
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

LLR tests Mersenne numbers?

Prime95 is the fastest as far as x86 processors go, and it is mostly free, except that if you discover a prime with it, you must abide by the Great Internet Mersenne Prime Search prize-distribution rules (you'll get a third of the EFF prize for a 100M digit prime, or a few thousand dollars or so for just a 'regular' prime).

If even that is too much of a restriction (it isn't really, I encourage you to read http://mersenne.org/legal) then try Mlucas or Glucas which are programmed in Fortran and C respectively (as opposed to x86 Assembly for Prime95). I am unsure about their license terms, though if I had to guess I'd say they're free (as in freedom, and definitely free-gratis).

Prime95 includes 64 bit optimizations, although they're not really significant for LL tests.

As for a billion digit number, I highly recommend you give up any hope of testing it with any program available. It will be impossible for (AT LEAST) the next 20 years. For more details, see here and here. From the second page: You're looking at around 95,000 GHz days to do one test. One core of my Intel i7-2600K is able to do ~5 GHz-Days per day, that would take me around 50 years. (You could use all four cores, but you'd get less than 15 GHz-Days per day, because the LL test isn't very well parallelizable).

*Note: It also just occurred to me that Prime95 (and presumably the other testing programs) can't even test numbers that are a billion digits long. The maximum Prime95 exponent is 596M, whereas the lowest prime exponent that produces a billion digits is 3,321M. Note the order of magnitude difference of the exponents.

**Note 2: I also just realized that this link from above is not an exponent to be tested, because that link shows it's already been factored.

Last fiddled with by Dubslow on 2012-01-25 at 22:31
Dubslow is offline   Reply With Quote
Old 2012-01-25, 22:33   #5
firejuggler
 
firejuggler's Avatar
 
"Vincent"
Apr 2010
Over the rainbow

22·7·103 Posts
Default

cause prime95 v26.6 doesn't support avx?
firejuggler is offline   Reply With Quote
Old 2012-01-25, 23:23   #6
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

67·167 Posts
Default

Quote:
Originally Posted by Dubslow View Post
Prime95 is the fastest as far as x86 processors go, and it is mostly free, except that if you discover a prime with it, you must abide by the Great Internet Mersenne Prime Search prize-distribution rules (you'll get a third of the EFF prize for a 100M digit prime, or a few thousand dollars or so for just a 'regular' prime).
Let us run a thought experiment...

Imagine that someone can factor really quickly... Perhaps by using Quantum Uncertainty...

And imagine that a few thousand dollars or so was small change.

Would they advertise that ability?
chalsall is offline   Reply With Quote
Old 2012-01-26, 00:01   #7
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 Dubslow View Post
Prime95 is the fastest as far as x86 processors go, and it is mostly free, except that if you discover a prime with it, you must abide by the Great Internet Mersenne Prime Search prize-distribution rules (you'll get a third of the EFF prize for a 100M digit prime, or a few thousand dollars or so for just a 'regular' prime).
***Note 3: As far as anyone the public knows.

Last fiddled with by Dubslow on 2012-01-26 at 00:01 Reason: [strike]
Dubslow is offline   Reply With Quote
Old 2012-01-26, 00:38   #8
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

2×3×52×73 Posts
Default

Quote:
Originally Posted by JonathanM View Post
What is the fastest software for checking if a Mersenne number is prime? (has to be free/non-binding, preferably for Windows 64 bit)

Also, approximately how long does checking a 1 billion digit Mersenne prime take?
Quote:
Originally Posted by firejuggler View Post
llravx and aproximately 1 year for current harware.
Basically nothing handles LL testing of numbers that large. And it would take too long.
From the wiki:
Quote:
There isn't hope of really finding such a prime with today's technology and algorithms. A Lucas-Lehmer primality test is estimated to require 852 years.
Uncwilly is online now   Reply With Quote
Old 2012-01-26, 04:06   #9
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

160658 Posts
Default

I actually got around 50 years on one core of my Sandy Bridge.
Dubslow is offline   Reply With Quote
Old 2012-01-26, 05:57   #10
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

1095010 Posts
Default

Quote:
Originally Posted by Dubslow View Post
I actually got around 50 years on one core of my Sandy Bridge.
What FFT size are you setting it for?
Uncwilly is online now   Reply With Quote
Old 2012-01-26, 18:07   #11
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default

Using James' estimate of 95K GHzDays, and assuming I can get 5/day.
http://www.wolframalpha.com/input/?i...+days+to+years
Maybe closer to 55 or 60, but still way less than 100.

Last fiddled with by Dubslow on 2012-01-26 at 18:09
Dubslow is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
New Mersenne primality test Prime95 Miscellaneous Math 19 2014-08-23 04:18
A (new) old, (faster) slower mersenne-(primality) PRP test boldi Miscellaneous Math 74 2014-04-17 07:16
The fastest primality test for Fermat numbers. Arkadiusz Math 6 2011-04-05 19:39
LLT Cycles for Mersenne primality test: a draft T.Rex Math 1 2010-01-03 11:34
Mersenne Primality Test in Hardware Unregistered Information & Answers 4 2007-07-09 00:32

All times are UTC. The time now is 19:29.


Tue Mar 28 19:29:40 UTC 2023 up 222 days, 16:58, 0 users, load averages: 0.48, 0.66, 0.78

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.

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