TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Jasen Betts
from: Pascal Schmidt
date: 2004-03-31 16:18:20
subject: squares

Hi Jasen! :-)

 PS>> Thus, no integer ending in 2, 3, 7, or 8 can be the square of any 
 PS>> other integer. This reduces the problem space by 40%. ;)
 JB> hmm, to do that I'd need to divide by 10...
Well, you didn't say anything about the representation of your bignums. ;)

[...]
 JB> but it seems though that the more terminal bits I examine the less
 JB> cost-effective it becomes.
I don't think there's a good heuristic besides really doing a square root,
but doing an approximation can be costly on bignums.

Ciao
Pascal

--- Msged/LNX 6.1.1
* Origin: By order of the king, the city must empty. (1:153/401.2)
SEEN-BY: 633/267 270
@PATH: 153/401 307 140/1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.