A ruby program to get all prime numbers in given ranges