primes and multisets