In this paper, for a commutative ring R with an identity, considering the endomorphism ring $End_R$(M) of left R-module $_RM$ which is (quasi-)injective or (quasi-)projective, some discriminations of prime endomorphism were found as follows: each epimorphism with the irreducible(or simple) kernel on a (quasi-)injective module and each monomorphism with maximal image on a (quasi-)projective module are prime. It was shown that for a field F, any given square matrix in $Mat_{n{\times}n}$(F) with maximal image and irreducible kernel is a prime matrix, furthermore, any given matrix in $Mat_{n{\times}n}$(F) for any field F can be factored into a product of prime matrices.