![]() |
![]() |
#1 |
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
![]()
according to the art of assembly language second edition copyright 2010 this instruction calculates 2^ST0-1 but this only works for 3 integer values should we try and eliminate that limitation and help gimps with a loop using it ?
|
![]() |
![]() |
![]() |
#2 |
Tribal Bullet
Oct 2004
2×3×19×31 Posts |
![]()
Um, how would GIMPS benefit from generating strings of all-1 quickly?
|
![]() |
![]() |
![]() |
#3 |
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
![]()
not just generating using them lucas lehmer used mod Mp if I remember right.
|
![]() |
![]() |
![]() |
#4 |
Jan 2009
Ireland
2×3×31 Posts |
![]() Last fiddled with by Dougal on 2010-05-11 at 13:40 |
![]() |
![]() |
![]() |
#5 |
"Forget I exist"
Jul 2009
Dumbassville
100000110000002 Posts |
![]()
I get I'm an idiot I was just asking.
|
![]() |
![]() |
![]() |
#6 |
Jan 2009
Ireland
2×3×31 Posts |
![]()
reading the link wont do any harm then.
|
![]() |
![]() |
![]() |
#7 |
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
![]()
916 mod 25-1 = 11100101002 mod 25-1
= 111002 + 101002 mod 25-1 = 1100002 mod 25-1 = 12 + 100002 mod 25-1 = 100012 mod 25-1 = 100012 = 17. is basically what my limit helps me understand. Last fiddled with by ewmayer on 2010-05-11 at 21:13 Reason: You're welcome... |
![]() |
![]() |
![]() |
#8 |
"Richard B. Woods"
Aug 2002
Wisconsin USA
22×3×641 Posts |
![]() |
![]() |
![]() |
![]() |
#9 |
"Forget I exist"
Jul 2009
Dumbassville
100000110000002 Posts |
![]() |
![]() |
![]() |
![]() |
#10 |
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
17×251 Posts |
![]()
They included the <sub> and <sup> (on this forum that'd be [sub] and [sup]) tags necessary, they just weren't copied, since the browser didn't know just how to mark that in the field you were copying to. You could be a bit more careful, and at least include something like _ and ^ if not sub and sup. If you have the forum text editor in one of the right modes for it, there're even sub and sup buttons, that look like 23 and 23, at the right end of the buttons.
Last fiddled with by Mini-Geek on 2010-05-11 at 18:08 |
![]() |
![]() |
![]() |
#11 |
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
![]()
yeah I didn't see that and forgot BTW if anyone has "the art of assembly" the second edition has this command on p.402 if you'd like to check it out.
"If ST0 is out of range,f2xml generates an undefined result but raises no exceptions. The computed value replaces the value in ST0." so if we could get this to be understood and turned into the proper math we might be able to cut out a few lines(with my luck probably not). |
![]() |
![]() |