20100511, 13:05  #1 
"Forget I exist"
Jul 2009
Dumbassville
8384_{10} Posts 
f2xm1
according to the art of assembly language second edition copyright 2010 this instruction calculates 2^ST01 but this only works for 3 integer values should we try and eliminate that limitation and help gimps with a loop using it ?

20100511, 13:26  #2 
Tribal Bullet
Oct 2004
2×3×19×31 Posts 
Um, how would GIMPS benefit from generating strings of all1 quickly?

20100511, 13:35  #3 
"Forget I exist"
Jul 2009
Dumbassville
8384_{10} Posts 
not just generating using them lucas lehmer used mod Mp if I remember right.

20100511, 13:39  #4 
Jan 2009
Ireland
2×3×31 Posts 
Last fiddled with by Dougal on 20100511 at 13:40 
20100511, 13:43  #5 
"Forget I exist"
Jul 2009
Dumbassville
10000011000000_{2} Posts 
I get I'm an idiot I was just asking.

20100511, 13:45  #6 
Jan 2009
Ireland
2×3×31 Posts 
reading the link wont do any harm then.

20100511, 13:50  #7 
"Forget I exist"
Jul 2009
Dumbassville
2^{6}·131 Posts 
916 mod 2^{5}1 = 1110010100_{2} mod 2^{5}1
= 11100_{2} + 10100_{2} mod 2^{5}1 = 110000_{2} mod 2^{5}1 = 1_{2} + 10000_{2} mod 2^{5}1 = 10001_{2} mod 2^{5}1 = 10001_{2} = 17. is basically what my limit helps me understand. Last fiddled with by ewmayer on 20100511 at 21:13 Reason: You're welcome... 
20100511, 17:09  #8 
"Richard B. Woods"
Aug 2002
Wisconsin USA
2^{2}×3×641 Posts 

20100511, 17:44  #9 
"Forget I exist"
Jul 2009
Dumbassville
10000011000000_{2} Posts 

20100511, 18:06  #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 2^{3} and 2_{3}, at the right end of the buttons.
Last fiddled with by MiniGeek on 20100511 at 18:08 
20100511, 22:23  #11 
"Forget I exist"
Jul 2009
Dumbassville
8384_{10} 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). 