prime numbers in ruby