62129 and 3407 are the two primes with 58722 as the composite. Without the restriction of the number of primes and composites there would be 38 possible solutions for the alphametic. Including the solution, those numbers are: