prints multiplication tables of primes