mersenneforum.org Is Mathematica really slow?
 Register FAQ Search Today's Posts Mark Forums Read

 2005-02-10, 14:32 #1 wakko   Nov 2004 2×5 Posts Is Mathematica really slow? M[p_]:=2^p-1 LL[p_]:=Module[{s,c,counter}, If[PrimeQ[p]==False,Print["The exponent must be prime"]]; s=4; c=M[p]; counter=0; iter=p-1; Print["Iteration : 0 "," / ",iter]; For[i=1,i
 2005-02-10, 14:49 #2 Mystwalker     Jul 2004 Potsdam, Germany 3·277 Posts I remember that Louis Helm (one of the creators of SoB - which uses the same algorithmic implementation as Prime95) once said that an implementation in Java would be roughly 30 times slower. I think the reason here is similar: The speed difference (incidently 30 times as well) supposely comes from the fact that Mathematica's routines are not hand-optimized for this exact purpose and architecture (does Mathematica use SSE2/FFTs/IBDWT?). In addition, I believe some "tricks" prime95 uses can only be applied due to special properties of mersenne numbers. Mathematica can't take that into account, I guess. Last fiddled with by Mystwalker on 2005-02-10 at 14:52
 2005-02-10, 20:51 #3 jinydu     Dec 2003 Hopefully Near M48 2×3×293 Posts Mathematica is slow in other things too. It took Mathematica hours to compute just 25,000 digits of Zeta(3). Other programs can do it in a fraction of a second on the same computer.
 2005-02-10, 23:16 #4 grandpascorpion     Jan 2005 Transdniestr 503 Posts Is Maple faster in general?
 2005-02-11, 01:45 #5 wakko   Nov 2004 2×5 Posts Thanks anyway for your replies. I am trying to comprehent the deeper things apon LL, that experiment showed me a lot. Mayber I'll try something hand-optimized.. CU later sievers
 2021-02-09, 16:46 #6 mattprim     Feb 2021 Salt Lake City, UT 29 Posts I excluded giant Mersenne with Mathematica I managed to exclude a giant Mersennes with Mathematica https://www.mersenneforum.org/showth...ht=Mathematica Pity I later learned they were both known but with Monte Carlo it worked below a Ghz x Minute and they are both above the biggest 2021 Mersenne prime known. Last fiddled with by mattprim on 2021-02-09 at 16:51
 2021-02-09, 16:52 #7 VBCurtis     "Curtis" Feb 2005 Riverside, CA 3×19×83 Posts "excluded" = trial-factored. Trial-factoring is not at all related to a primality test, and comparing the speed of those two things is akin to someone asking what the 99th power of 99 is, and you answering "Well, I added 99 and 99 really fast!"

 Similar Threads Thread Thread Starter Forum Replies Last Post bbb120 Software 19 2019-04-21 16:20 JuanTutors Information & Answers 7 2007-06-14 17:29 jinydu Lounge 0 2007-05-07 05:05 Zeta-Flux Math 6 2005-09-22 21:47

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

Mon Apr 12 15:14:06 UTC 2021 up 4 days, 9:54, 1 user, load averages: 1.32, 1.98, 2.04