F
Frisco Del Rosario
Ruby version 1.8.6
Mac OS 10.5.2
I would like a Ruby script to do something if a result is a prime
number, or do something else if the result is not prime. But Ruby is
hanging on instance_of_Prime.includes?(some prime number). For example,
in irb:
$ irbtrue
=> nil
Expected:
false
Got:
Nothing, and programs won't exit.
Mac OS 10.5.2
I would like a Ruby script to do something if a result is a prime
number, or do something else if the result is not prime. But Ruby is
hanging on instance_of_Prime.includes?(some prime number). For example,
in irb:
$ irbtrue
=> nil
Expected:
false
Got:
Nothing, and programs won't exit.