Question 1188291
.


It is  ENTIRELY   " trial and error "  task.



Notice that you did not specify if the used prime numbers should be all different or repeating is allowed,


so the problem has one  (excessive)  degree of freedom . . .