Guest User

Untitled

a guest
Oct 4th, 2011
1,277
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. range = (3..200000).step(2)
  2. all = [2]
  3. range.each do |i|
  4.     all << i unless all.any? {|j| i % j == 0 }
  5. end
  6.  
  7. puts all
  8.  
  9.  
RAW Paste Data