10^9 as input generates error of sigtstp

Why only for 10^9 as input in python it takes high memory & gives sigtstp error. I checked for (10^9-)1 it was working fine.