From: Wyatt Greene Date: 2008-01-31T09:49:59+09:00 Subject: Re: Ruby Puzzle Challenge On Jan 30, 6:01 pm, Lionel Bouton wrote: > 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 Wow, that's pretty creative, though!