Added an is_prime for ruby