Chemical graph theory is a sub-branch of mathematical chemistry, assuming each atom of a molecule is a vertex and each bond between atoms as an edge. Owing to this theory, it is possible to avoid the difficulties of chemical analysis because many of the chemical properties of molecules can be determined and analyzed via topological indices. Due to these parameters, it is possible to determine the physicochemical properties, biological activities, environmental behaviours and spectral properties of molecules. Nowadays, studies on the zero divisor graph of Z_n via topological indices is a trending field in spectral graph theory. For a commutative ring R with identity, the prime ideal sum graph of R is a graph whose vertices are nonzero proper ideals of R and two distinctvertices I and J are adjacent if and only if I+J is a prime ideal of R. In this study the forgotten topological index and Wiener index of the prime ideal sum graph of Z_n are calculated for n=p^α,pq,p^2 q,p^2 q^2,pqr,p^3 q,p^2 qr,pqrs where p,q,r and s are distinct primes and a Sage math code is developed for designing graph and computing the indices. In the light of this study, it is possible to handle the other topological descriptors for computing and developing new algorithms for next studies and to study some spectrum and graph energies of certain finite rings with respect to PIS-graph easily.