We describe protocols for three or more parties to jointly generate a composite N=pqr which is the product of three primes. After our protocols terminate N is publicly known, but neither party knows the factorization of N. Our protocols require the design of a new type of distributed primality test for testing that a given number is a product
of three primes. We explain the cryptographic motivation and origin of this problem.