Thread: Perfect sqquare
View Single Post
Old 2011-08-24, 07:46   #1
JohnFullspeed
 
May 2011
France

7·23 Posts
Default Perfect sqquare

When you search a perfzct square the first step is to test the last digit

I need tto find value with 3 like last didit
Id ity possible to make one or two tests like
(n & 7 == 1) or (n & 31 == 4) or (n & 127 == 16) or (n & 191 == 0) then John
JohnFullspeed is offline   Reply With Quote