def f(n,s) (1..n).select{|x|x%s==1}endp f(100,7)
Standard input is empty
Standard output is empty
prog.rb:2:in `f': private method `select' called for 100:Fixnum (NoMethodError) from prog.rb:4:in `<main>'
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!