ok, first a smart aleck answer that is true to the specification but not the intent ...
>> do http://www.rebol.org/cgi-bin/cgiwrap/rebol/download-a-script.r?script-name=lexpem.r >> ms: lexperm "012345678" 362880 ; all 3-by-3 simple magic squares are constructed and in the 'ms block ; I doubt it will be fastest ('cept maby to write) ; Will try one that matches your intent better when I am not at work ;) On Mon, 10 Nov 2003, Joel Neely wrote: > > If Sunanda will allow me to steal his subject line... ;-) > > The following 3-by-3 display is a simple magic square: > > 0 8 4 > 5 1 6 > 7 3 2 > > because each row and each column sums to 12. Write a function which > uses the integers 0 thru 8 (once each!) to construct all possible > 3-by-3 simple magic squares. Make it run as quickly as possible. > > -- > ---------------------------------------------------------------------- > Joel Neely joelDOTneelyATfedexDOTcom 901-263-4446 > > Enron Accountingg in a Nutshell: 1c=$0.01=($0.10)**2=(10c)**2=100c=$1 > > > -- > To unsubscribe from this list, just send an email to > [EMAIL PROTECTED] with unsubscribe as the subject. > -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
