Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: worker
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (9 sloc) 0.225 kb
require 'prime'
class PrimesController < ApplicationController
def index
end
def check
is_prime = prime?(params[:number].to_i)
render :text => "#{params[:number]}: is #{is_prime ? '' : 'not '}prime"
end
end
Jump to Line
Something went wrong with that request. Please try again.