def check_prime n
(2..n-1).each do |no|
return false if n % no == 0
end
true
end
(2..n-1).each do |no|
return false if n % no == 0
end
true
end
What is interactor? Interactor provides a common interface for performing complex user interactions An interactor is a simple, sin...