Ruby code to print a multiplication table of a specified number of primes