Removed check for even numbers
used num.prime? instead of Prime.prime?(num)