Generates multiplication tables of primes