From: Lionel Bouton Date: 2008-01-31T08:01:06+09:00 Subject: Re: Ruby Puzzle Challenge Wyatt Greene wrote: > I was thinking of p *1..100 > > I'm am truly amazed that this could be squeezed down even further to p > *1..?d > > That leads me to wonder...is it possible to squeeze this program down > into 7 characters? > I tried another approach by relaxing your conditions a bit : the number must all be printed out on the output but not one on each line. p 2**975 works :-) ie the "output" verifies : !(1..100).any? { |v| output !~ /#{v}/ } Unfortunately there's no x**y solution to this condition where x and y use less that 4 characters. Still stuck with 8 chars :-/ I can't think of any other string or numeric operator which can generate lots of data to print with little input right now. Lionel