A symmetric positive semi-definite matrix is called completely positive if there exists a matrix with nonnegative entries such that . If is such a matrix with a minimal number of columns, then is called the cp-rank of . In this paper we develop a finite and exact algorithm to factorize any matrix of cp-rank . Failure of this algorithm implies that does not have cp-rank . Our motivation stems from the question if there exist three nonnegative polynomials of degree at most four that...