Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re (tilly) 2: Add-A-Gram Performance

by I0 (Priest)
on Feb 20, 2002 at 08:25 UTC ( [id://146524]=note: print w/replies, xml ) Need Help??


in reply to Re (tilly) 2: Add-A-Gram Performance
in thread Add-A-Gram Performance

use Quantum::Superpositions; $nines[1] = any(9); for $i ( 1..8 ){ $nines[$i+1] = any eigenstates any map{ $nines[$_]+$nines[$i-$_+1], $nines[$_]-$nines[$i-$_+1], $nines[$_]*$nines[$i-$_+1], $nines[$_]/any grep{$_!=0}eigenstates $nines[$i-$_+1] } 1..$i; print $nines[$i+1],"\n"; for( $_=1;;$_++){ last unless $_ eq $nines[$i+1] } print "$_\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://146524]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-25 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found