William James wrote:
> Farrel Lifson wrote:
> 
>>Whoops here it is....
>>
>>farrel@nicodemus ~ $ cat primes.rb
>>puts [1]<<(2..ARGV[0].to_i).inject([]){|p,c|p.detect{|n|c%n==0}?p:p<<c}
>>farrel@nicodemus ~ $ ruby primes.rb 30
>>1
>>2
>>3
>>5
>>7
>>11
>>13
>>17
>>19
>>23
>>29
> 
> 
> 1 isn't a prime number.

mv primes.rb non_composite_natural_numbers.rb