Lloyd Zusman <ljz / asfast.com> writes: > ruby -e 'def x(n,m)z=n;(m-1).times{|x|z*=n};z;end > def f(n)d=2;r=[];while(d*d)<n do t=0;while((n%d)==0)do > n=(n/d).to_i;t+=1;end;while(t>0)do t-=1;r<<d;end;d+=(1+(d%2));end > (r<<n)if(n>1);r;end;p f((x(3,2).to_s+x(2,5).to_s).to_i).inject{ > |x,y|x+y}.to_s.split(//).inject(1){|a,b|a*b.to_i}' Now, that's a lotta code to calculate 6*9. :-) -- Christian Neukirchen <chneukirchen / gmail.com> http://chneukirchen.org