module Primality
Constants
- VERSION
Public Instance Methods
main()
click to toggle source
Your code goes hereā¦
# File lib/primality.rb, line 42 def main i = ARGV[0] if i.to_i.prime? puts "#{i} is prime" else puts "#{i} is not prime" end end