#!/usr/local/bin/ruby -w require 'prime' p((10..50).select(&:prime?))p((-50..-10).select(&:prime?))
Standard input is empty
[11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47] [-47, -43, -41, -37, -31, -29, -23, -19, -17, -13, -11]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!