multiplying prime gem